fix conformance glitch introduced with NPOT extension

This commit is contained in:
Brian Paul
2003-07-07 17:01:18 +00:00
parent ef751eb08b
commit f6e76fe9b5

View File

@@ -1015,6 +1015,14 @@ texture_error_check( GLcontext *ctx, GLenum target,
return GL_TRUE;
}
if (width < 1 || height < 1 || depth < 1) {
if (!isProxy) {
_mesa_error(ctx, GL_INVALID_VALUE,
"glTexImage%dD(width, height or depth < 1)", dimensions);
}
return GL_TRUE;
}
/* Check target and call ctx->Driver.TestProxyTexImage() to check the
* level, width, height and depth.
*/