mesa: Add error path in compressed_texture_error_check.
authorVinson Lee <vlee@vmware.com>
Fri, 16 Jul 2010 06:45:25 +0000 (23:45 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 16 Jul 2010 06:45:25 +0000 (23:45 -0700)
Add error path for unhandled dimensions in
compressed_texture_error_check.

src/mesa/main/teximage.c

index 50890a3c1e3286c7975c8ae7b40b1ef24146dd3a..29b721d0bee92f7eaeeba33544266f92552e3bce 100644 (file)
@@ -3205,6 +3205,10 @@ compressed_texture_error_check(GLcontext *ctx, GLint dimensions,
       /* 3D compressed textures not allowed */
       return GL_INVALID_ENUM;
    }
+   else {
+      assert(0);
+      return GL_INVALID_ENUM;
+   }
 
    maxTextureSize = 1 << (maxLevels - 1);