diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/teximage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0bc6716c240..083051aec70 100644 --- 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); |