mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026012: Visualization, TKOpenGl - fix misprints in detection of high precision floats within OpenGL ES 2.0
This commit is contained in:
@@ -1051,11 +1051,11 @@ void OpenGl_Context::init (const Standard_Boolean theIsCoreProfile)
|
||||
arbFBOBlit = (OpenGl_ArbFBOBlit* )(&(*myFuncs));
|
||||
}
|
||||
|
||||
hasHighp = CheckExtension ("OES_fragment_precision_high");
|
||||
hasHighp = CheckExtension ("GL_OES_fragment_precision_high");
|
||||
GLint aRange[2] = {0, 0};
|
||||
GLint aPrec [2] = {0, 0};
|
||||
::glGetShaderPrecisionFormat (GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, aRange, aPrec);
|
||||
if (aPrec[1] != 0)
|
||||
GLint aPrec = 0;
|
||||
::glGetShaderPrecisionFormat (GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, aRange, &aPrec);
|
||||
if (aPrec != 0)
|
||||
{
|
||||
hasHighp = Standard_True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user