fix size assertions in _mesa_init_teximage_fields()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 16:45:28 +0000 (16:45 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Jun 2006 16:45:28 +0000 (16:45 +0000)
src/mesa/main/teximage.c

index 0bc6716c240ade7ef36b565fe99f1ad5bcc759ec..083051aec70f5b138e1621cd23f05c647d97e21f 100644 (file)
@@ -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);