From 8bc00c2047f69d8cd37d4fd70256850445b0fa1d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Jun 2006 16:45:28 +0000 Subject: fix size assertions in _mesa_init_teximage_fields() --- src/mesa/main/teximage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3