From 447c4115766e848803e15ede40d3de9d0ea71738 Mon Sep 17 00:00:00 2001 From: kgv Date: Thu, 2 Apr 2015 19:06:57 +0300 Subject: [PATCH] 0026012: Visualization, TKOpenGl - fix misprints in detection of high precision floats within OpenGL ES 2.0 --- src/OpenGl/OpenGl_Context.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.5