From 8bc00c2047f69d8cd37d4fd70256850445b0fa1d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 13 Jun 2006 16:45:28 +0000 Subject: [PATCH] fix size assertions in _mesa_init_teximage_fields() --- src/mesa/main/teximage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0bc6716..083051a 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); -- 2.7.4