summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-07-15 23:45:25 -0700
committerVinson Lee <vlee@vmware.com>2010-07-15 23:45:25 -0700
commit5f9d7bb2425aee65e75667953a6cc304072f2b11 (patch)
tree0be8bc5bbc40efc567ad8b3d65b09e7c2219f8bd /src
parent643f5ea1e0402d05e71d4f0340ea8f29042b8c79 (diff)
mesa: Add error path in compressed_texture_error_check.
Add error path for unhandled dimensions in compressed_texture_error_check.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/teximage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 50890a3c1e..29b721d0be 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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);