From: kgv Date: Thu, 2 Apr 2015 16:06:57 +0000 (+0300) Subject: 0026012: Visualization, TKOpenGl - fix misprints in detection of high precision float... X-Git-Tag: V6_9_0_beta1~40 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=447c4115766e848803e15ede40d3de9d0ea71738;p=occt-copy.git 0026012: Visualization, TKOpenGl - fix misprints in detection of high precision floats within OpenGL ES 2.0 --- diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index 277e7f6f0d..0cf70394ce 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -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; }