mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0030705: Visualization, TKOpenGl - stipple line GLSL error on using OpenGL 2.1 + GL_EXT_gpu_shader4 extension on macOS
Fix compatibility with pure GL_EXT_gpu_shader4 specs by defining "uint" as "unsigned int".
This commit is contained in:
@@ -1550,7 +1550,9 @@ int OpenGl_ShaderManager::defaultGlslVersion (const Handle(Graphic3d_ShaderProgr
|
||||
}
|
||||
else if (myContext->CheckExtension ("GL_EXT_gpu_shader4"))
|
||||
{
|
||||
theProgram->SetHeader ("#extension GL_EXT_gpu_shader4 : enable");
|
||||
// GL_EXT_gpu_shader4 defines GLSL type "unsigned int", while core GLSL specs define type "uint"
|
||||
theProgram->SetHeader ("#extension GL_EXT_gpu_shader4 : enable\n"
|
||||
"#define uint unsigned int");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user