summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-10-22 22:17:31 +0800
committerChia-I Wu <[email protected]>2011-11-03 15:09:44 +0800
commitd8ba30af11f1894fcdd9138a8bc71ff054932bb6 (patch)
tree5548ad42d88176d964c0a63f348242b379481b76 /src/mesa/main/fbobject.c
parent2903816aadb281716b6c59a5a48aeadb84a08f50 (diff)
mesa: fix a logic error in glFramebufferTexture2D
Unrecognized texture target should give an error. Reviewed-by: Brian Paul <[email protected]> Acked-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r--src/mesa/main/fbobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index ff46570bf16..bcebf124001 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -2125,7 +2125,7 @@ _mesa_FramebufferTexture2DEXT(GLenum target, GLenum attachment,
error = !ctx->Extensions.EXT_texture_array;
break;
default:
- error = GL_FALSE;
+ error = GL_TRUE;
}
if (error) {