diff options
author | Brian Paul <[email protected]> | 2006-06-13 16:45:28 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-06-13 16:45:28 +0000 |
commit | 8bc00c2047f69d8cd37d4fd70256850445b0fa1d (patch) | |
tree | 8d5bed6b78d928b0694b91b19e7291078d1f44bb /src/mesa | |
parent | 212d7e836979552eae7f91849295a8c7542fcf01 (diff) |
fix size assertions in _mesa_init_teximage_fields()
Diffstat (limited to 'src/mesa')
-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); |