From b59c46c3cfc677e5233f8a418259f01963b39fc1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 30 Nov 2016 17:15:06 +0000 Subject: [PATCH] Added GL_EXT_texture_border_clamp support for GLES --- src/osg/GLExtensions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osg/GLExtensions.cpp b/src/osg/GLExtensions.cpp index 24e49917b..170eb7141 100644 --- a/src/osg/GLExtensions.cpp +++ b/src/osg/GLExtensions.cpp @@ -824,7 +824,10 @@ GLExtensions::GLExtensions(unsigned int contextID) isGLExtensionOrVersionSupported(contextID,"GL_SGIS_texture_edge_clamp", 1.2f); - isTextureBorderClampSupported = OSG_GL3_FEATURES || ((OSG_GL1_FEATURES || OSG_GL2_FEATURES) && isGLExtensionOrVersionSupported(contextID,"GL_ARB_texture_border_clamp", 1.3f)); + isTextureBorderClampSupported = OSG_GL3_FEATURES || + ((OSG_GL1_FEATURES || OSG_GL2_FEATURES) && isGLExtensionOrVersionSupported(contextID,"GL_ARB_texture_border_clamp", 1.3f)) || + (OSG_GLES2_FEATURES && isGLExtensionSupported(contextID,"GL_EXT_texture_border_clamp")); + isGenerateMipMapSupported = builtInSupport || isGLExtensionOrVersionSupported(contextID,"GL_SGIS_generate_mipmap", 1.4f); preferGenerateMipmapSGISForPowerOfTwo = (radeonHardwareDetected||fireGLHardwareDetected) ? false : true; isTextureMultisampledSupported = isGLExtensionSupported(contextID,"GL_ARB_texture_multisample");