Added OSG_GLES2_FEATURES and OSG_GL3_FEATURES usage where appropriate

This commit is contained in:
Robert Osfield
2009-11-10 19:16:36 +00:00
parent b199a334d9
commit 14838aafc5
11 changed files with 36 additions and 24 deletions

View File

@@ -89,7 +89,8 @@ void BlendColor::Extensions::lowestCommonDenominator(const Extensions& rhs)
void BlendColor::Extensions::setupGLExtensions(unsigned int contextID)
{
_isBlendColorSupported = isGLExtensionSupported(contextID,"GL_EXT_blend_color") ||
_isBlendColorSupported = OSG_GLES2_FEATURES || OSG_GL3_FEATURES ||
isGLExtensionSupported(contextID,"GL_EXT_blend_color") ||
strncmp((const char*)glGetString(GL_VERSION),"1.2",3)>=0;
setGLExtensionFuncPtr(_glBlendColor, "glBlendColor", "glBlendColorEXT");