Merge pull request #488 from LaurensVoerman/submit_array_ext
remove _EXT from GL_MAX_ARRAY_TEXTURE_LAYERS_EXT
This commit is contained in:
commit
eafab0fc35
@ -969,7 +969,7 @@ GLExtensions::GLExtensions(unsigned int in_contextID):
|
||||
max2DSize = 0;
|
||||
if (validContext) glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max2DSize);
|
||||
maxLayerCount = 0;
|
||||
if (validContext) glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, &maxLayerCount);
|
||||
if (validContext) glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &maxLayerCount);
|
||||
|
||||
// Bindless textures
|
||||
setGLExtensionFuncPtr(glGetTextureHandle, "glGetTextureHandle", "glGetTextureHandleARB","glGetTextureHandleNV", validContext);
|
||||
|
@ -1274,7 +1274,7 @@ void Image::readImageFromCurrentTexture(unsigned int contextID, bool copyMipMaps
|
||||
|
||||
if (extensions->isTexture2DArraySupported)
|
||||
{
|
||||
glGetBooleanv(GL_TEXTURE_BINDING_2D_ARRAY_EXT, &binding2DArray);
|
||||
glGetBooleanv(GL_TEXTURE_BINDING_2D_ARRAY, &binding2DArray);
|
||||
}
|
||||
|
||||
GLenum textureMode = binding1D ? GL_TEXTURE_1D : binding2D ? GL_TEXTURE_2D : bindingRect ? GL_TEXTURE_RECTANGLE : binding3D ? GL_TEXTURE_3D : binding2DArray ? GL_TEXTURE_2D_ARRAY : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user