Updated gl::IsInternalTextureTarget to have a client version parameter.
TRAC #23470
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Geoff Lang
diff --git a/src/libGLESv2/libGLESv2.cpp b/src/libGLESv2/libGLESv2.cpp
index 86ff931..458bf5b 100644
--- a/src/libGLESv2/libGLESv2.cpp
+++ b/src/libGLESv2/libGLESv2.cpp
@@ -800,7 +800,7 @@
GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
{
- if (!gl::IsInternalTextureTarget(target))
+ if (!gl::IsInternalTextureTarget(target, context->getClientVersion()))
{
return gl::error(GL_INVALID_ENUM, false);
}
@@ -5290,7 +5290,7 @@
{
attachmentObjectType = attachmentType;
}
- else if (gl::IsInternalTextureTarget(attachmentType))
+ else if (gl::IsInternalTextureTarget(attachmentType, context->getClientVersion()))
{
attachmentObjectType = GL_TEXTURE;
}