projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef751eb
)
fix conformance glitch introduced with NPOT extension
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 7 Jul 2003 17:01:18 +0000
(17:01 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 7 Jul 2003 17:01:18 +0000
(17:01 +0000)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index
d731e12
..
de28839
100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-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.
*/