Added checked against GL version number for enabled _isTexture3DSupported.
This commit is contained in:
parent
f8f6a9fedf
commit
39b8aa45bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user