Updated the error handling of compressed image sizes based on the…

Updated the error handling of compressed image sizes based on the ANGLE_texture_compression_dxt spec. TRAC #13332 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1975 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent f548ff2a
...@@ -1014,7 +1014,17 @@ void __stdcall glCompressedTexImage2D(GLenum target, GLint level, GLenum interna ...@@ -1014,7 +1014,17 @@ void __stdcall glCompressedTexImage2D(GLenum target, GLint level, GLenum interna
if (border != 0) if (border != 0)
{ {
return gl::error(GL_INVALID_VALUE); return gl::error(GL_INVALID_OPERATION);
}
if (width != 1 && width != 2 && width % 4 != 0)
{
return gl::error(GL_INVALID_OPERATION);
}
if (height != 1 && height != 2 && height % 4 != 0)
{
return gl::error(GL_INVALID_OPERATION);
} }
gl::Context *context = gl::getNonLostContext(); gl::Context *context = gl::getNonLostContext();
......
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