From 973da83f6237b5af4a9ee77f32fdfa5c04ecabc8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Sep 2003 15:03:12 +0000 Subject: Allow glTexImage1/2/3D to specify width/height/depth = 0. This allows texture state to be resettable to default state. Not allowed according to the spec, but allowed by all other OpenGL libs. --- src/mesa/main/texstore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/texstore.c') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 16dd320e82..5a564fbc15 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -195,9 +195,9 @@ transfer_teximage(GLcontext *ctx, GLuint dimensions, texDestFormat == GL_COLOR_INDEX || texDestFormat == GL_DEPTH_COMPONENT); ASSERT(texDestAddr); - ASSERT(srcWidth >= 1); - ASSERT(srcHeight >= 1); - ASSERT(srcDepth >= 1); + ASSERT(srcWidth >= 0); + ASSERT(srcHeight >= 0); + ASSERT(srcDepth >= 0); ASSERT(dstXoffset >= 0); ASSERT(dstYoffset >= 0); ASSERT(dstZoffset >= 0); -- cgit v1.2.3