projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77db34b
)
mesa: move error check code in compressedteximage()
author
Brian Paul
<brianp@vmware.com>
Sat, 16 Apr 2011 14:03:47 +0000
(08:03 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 16 Apr 2011 14:05:14 +0000
(08:05 -0600)
This was mistakenly inside the #if FEATURE_ES block.
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index c5c454336faff6cd39e1e138e4d17a69981ea282..af0b9c7518758ab35240cb8be682c25b7d20734b 100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-3281,13
+3281,13
@@
compressedteximage(struct gl_context *ctx, GLuint dims,
internalFormat, width, height, depth,
border, imageSize);
-#if FEATURE_ES
- /* XXX this is kind of a hack */
if (error) {
_mesa_error(ctx, error, "glTexImage2D");
return;
}
+#if FEATURE_ES
+ /* XXX this is kind of a hack */
if (dims == 2) {
switch (internalFormat) {
case GL_PALETTE4_RGB8_OES: