You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen this issue as well. Either on MacOS or using the open source MESA nVidia drivers.
I submitted PR 965 as a manual work around for this. Set up USDVIEW_ENABLE_COREGL environment variable and i allows drivers that support OpenGL Core context but expose an OpenGL Compatibility context that is less than the minimum 3.2 value of the Core context.
I have to admit that I do not fully understand the relation to #965.
This bug (how I see it) stems from a wrong mapping of the OPENGL_VERSION to GL_SHADING_LANGUAGE_VERSION which results in selecting the wrong shader (1.4 instead of 1.2).
The current behavior is:
Get the _glMajorVersion by casting the version-string to an int.
From this _glMajorVersion select one of the two shader variants
glVersion >= 3 => select the shader with glsl-version 1.4 (VS3/FS3)
otherwise => select the shader with glsl-version 1.2 (VS2/FS2)
This is correct for all gl versions except for 3.0 since 3.0 maps to glsl-version 1.3 and should therefore select 1.2
glFormat.setProfile(QtOpenGL.QGLFormat.CoreProfile)
shouldn't do anything on my system since "QGLFormat::setProfile" is ignored for OpenGL versions of less than 3.2
Description of Issue
Starting usdview on my system which supports OpenGl 3.0 prints a lot errors of the form:
Looking at the chart found here https://stackoverflow.com/questions/27407774/get-supported-glsl-versions/27410925 It looks like GL 3.0 is indeed mapped to GLSL version 1.3
Changing the lines starting at stageView.py:92
to
Solved the problem for me since it now uses The supported fallback shaders VS2 and FS2
VS3 => #version 140
VS2 => #version 120
Steps to Reproduce
System Information (OS, Hardware)
Fedora 29
Package Versions
19.07
Build Flags
python ../build_scripts/build_usd.py --materialx --alembic --hdf5 --openimageio --usdview --usd-imaging --ptex /home/knud/src/c++/phanes/thirdparty/USD/build/build_usdimaging
The text was updated successfully, but these errors were encountered: