1
0
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:
kgv
2015-04-02 19:06:57 +03:00
committed by bugmaster
parent d1db9125d0
commit 447c411576

View File

@@ -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;
}