From: kgv Date: Wed, 3 Jun 2020 09:20:49 +0000 (+0300) Subject: 0031596: Visualization, OpenGl_Context - take GL_OES_texture_float extension into... X-Git-Tag: V7_5_0_beta~184 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=59ec2ccec98845ed8f0f56b6bd36c649b2ed2b60;p=occt-copy.git 0031596: Visualization, OpenGl_Context - take GL_OES_texture_float extension into account for arbTexFloat flag --- diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index 9ae0f0ec41..36933dd4ff 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -1543,8 +1543,9 @@ void OpenGl_Context::init (const Standard_Boolean theIsCoreProfile) hasHighp = Standard_True; } - arbTexFloat = IsGlGreaterEqual (3, 0) - && FindProcShort (glTexImage3D); + arbTexFloat = (IsGlGreaterEqual (3, 0) + && FindProcShort (glTexImage3D)) + || CheckExtension ("GL_OES_texture_float"); hasTexFloatLinear = arbTexFloat && CheckExtension ("GL_OES_texture_float_linear");