Added checked against GL version number for enabled _isTexture3DSupported.

This commit is contained in:
Robert Osfield 2011-03-15 13:53:59 +00:00
parent f8f6a9fedf
commit 39b8aa45bc

View File

@ -708,7 +708,10 @@ void Texture2DArray::Extensions::lowestCommonDenominator(const Extensions& rhs)
void Texture2DArray::Extensions::setupGLExtensions(unsigned int contextID)
{
_isTexture3DSupported = OSG_GL3_FEATURES || isGLExtensionSupported(contextID,"GL_EXT_texture3D");
_isTexture3DSupported = OSG_GL3_FEATURES ||
isGLExtensionSupported(contextID,"GL_EXT_texture3D") ||
strncmp((const char*)glGetString(GL_VERSION),"1.2",3)>=0;
_isTexture2DArraySupported = OSG_GL3_FEATURES || isGLExtensionSupported(contextID,"GL_EXT_texture_array");
_max2DSize = 0;