From: Brian Paul Date: Tue, 13 Jun 2006 16:45:28 +0000 (+0000) Subject: fix size assertions in _mesa_init_teximage_fields() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bc00c2047f69d8cd37d4fd70256850445b0fa1d;p=mesa.git fix size assertions in _mesa_init_teximage_fields() --- 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);