projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643f5ea
)
mesa: Add error path in compressed_texture_error_check.
author
Vinson Lee
<vlee@vmware.com>
Fri, 16 Jul 2010 06:45:25 +0000
(23:45 -0700)
committer
Vinson 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 50890a3c1e3286c7975c8ae7b40b1ef24146dd3a..29b721d0bee92f7eaeeba33544266f92552e3bce 100644
(file)
--- 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);