Removed check that width == height for cube maps during SubImage call.

TRAC #22956 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2358 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 18029cdc
...@@ -624,7 +624,7 @@ bool validateES3TexImageParameters(gl::Context *context, GLenum target, GLint le ...@@ -624,7 +624,7 @@ bool validateES3TexImageParameters(gl::Context *context, GLenum target, GLint le
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z: case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z: case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
{ {
if (width != height) if (!isSubImage && width != height)
{ {
return gl::error(GL_INVALID_VALUE, false); return gl::error(GL_INVALID_VALUE, false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment