diff options
author | Vinson Lee <vlee@vmware.com> | 2010-07-15 23:45:25 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-07-15 23:45:25 -0700 |
commit | 5f9d7bb2425aee65e75667953a6cc304072f2b11 (patch) | |
tree | 0be8bc5bbc40efc567ad8b3d65b09e7c2219f8bd | |
parent | 643f5ea1e0402d05e71d4f0340ea8f29042b8c79 (diff) |
mesa: Add error path in compressed_texture_error_check.
Add error path for unhandled dimensions in
compressed_texture_error_check.
-rw-r--r-- | src/mesa/main/teximage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 50890a3c1e32..29b721d0bee9 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); |