From: kgv Date: Mon, 13 May 2019 08:31:42 +0000 (+0300) Subject: 0030705: Visualization, TKOpenGl - stipple line GLSL error on using OpenGL 2.1 +... X-Git-Tag: V7_4_0_beta~151 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=853af31fb14e2140d821c7ba1c5c5977072d7662;p=occt-copy.git 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". --- diff --git a/src/OpenGl/OpenGl_ShaderManager.cxx b/src/OpenGl/OpenGl_ShaderManager.cxx index 5544e67f9e..f431e1d8fb 100644 --- a/src/OpenGl/OpenGl_ShaderManager.cxx +++ b/src/OpenGl/OpenGl_ShaderManager.cxx @@ -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 {