MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031372Open CASCADE[OCCT] OCCT:Visualizationpublic2020-02-14 19:212020-02-17 14:02
Reporterkgv 
Assigned Tobugmaster 
PrioritynormalSeveritymajor 
StatusreviewedResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.5.0* 
Target Version[OCCT] 7.5.0*Fixed in Version 
Summary0031372: Visualization, TKOpenGl - failed to create texture on OpenGL ES 2.0 due to unknown GL_TEXTURE_BASE_LEVEL
DescriptionTexture creation fails on OpenGL ES 2.0 due to invalid enumeration error:
TKOpenGl.OpenGL | Type: Error | ID: 1 | Severity: High | Message:
  GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_BASE_LEVEL)
TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
  Error: 2D texture 409x409 IF: 6408 PF: 6408 DT: 5121 can not be created with error 1280.
TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
  Error! Main FBO 409x409@0 initialization has failed


This is because GL_TEXTURE_MAX_LEVEL and GL_TEXTURE_BASE_LEVEL have been introduced only by OpenGL ES 3.0, while within desktop they are available since very OpenGL 1.2.

This is a REGRESSION after 0030700.
Steps To Reproduce
export MESA_GLES_VERSION_OVERRIDE=2.0

pload MODELING VISUALIZATION
vgldebug 1
vcaps -maxVersion 2 0
vclear
vinit View1
box b 1 2 3
vdisplay -dispMode 1 b
vfit
vviewcube vc
TagsNo tags attached.
Test case number
Attached Files

- Relationships
child of 0030700verifiedapn Visualization, TKOpenGl - support PBR Metallic-Roughness shading model 

-  Notes
(0090525)
git (administrator)
2020-02-14 19:29

Branch CR31372 has been created by kgv.

SHA-1: 0c7f96d34a3ef5f301a0b49b9617d670fde3ea7d


Detailed log of new commits:

Author: kgv
Date: Fri Feb 14 19:29:51 2020 +0300

    0031372: Visualization, TKOpenGl - failed to create texture on OpenGL ES 2.0 due to unknown GL_TEXTURE_BASE_LEVEL
    
    OpenGl_Sampler::applySamplerParams() has been corrected to check for OpenGL ES 3.0
    when applying GL_TEXTURE_BASE_LEVEL/GL_TEXTURE_MAX_LEVEL parameters.
(0090526)
kgv (developer)
2020-02-14 19:32

Please raise trivial patch.
(0090569)
git (administrator)
2020-02-17 14:02

Branch CR31372 has been updated forcibly by kgv.

SHA-1: cd43c08f2b7be9b9ffd97c0eff04c5e3d629ef7b

- Issue History
Date Modified Username Field Change
2020-02-14 19:21 kgv New Issue
2020-02-14 19:21 kgv Assigned To => kgv
2020-02-14 19:23 kgv Description Updated View Revisions
2020-02-14 19:29 git Note Added: 0090525
2020-02-14 19:32 kgv Note Added: 0090526
2020-02-14 19:32 kgv Assigned To kgv => bugmaster
2020-02-14 19:32 kgv Status new => resolved
2020-02-14 19:32 kgv Status resolved => reviewed
2020-02-14 19:34 kgv Relationship added child of 0030700
2020-02-14 19:35 kgv Description Updated View Revisions
2020-02-17 14:02 git Note Added: 0090569


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker