projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212d7e8
)
fix size assertions in _mesa_init_teximage_fields()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 16:45:28 +0000
(16:45 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 16:45:28 +0000
(16:45 +0000)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 0bc6716c240ade7ef36b565fe99f1ad5bcc759ec..083051aec70f5b138e1621cd23f05c647d97e21f 100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-1095,9
+1095,9
@@
_mesa_init_teximage_fields(GLcontext *ctx, GLenum target,
GLint i;
ASSERT(img);
- ASSERT(width > 0);
- ASSERT(height > 0);
- ASSERT(depth > 0);
+ ASSERT(width >
=
0);
+ ASSERT(height >
=
0);
+ ASSERT(depth >
=
0);
img->_BaseFormat = _mesa_base_tex_format( ctx, internalFormat );
ASSERT(img->_BaseFormat > 0);