mesa: fix a logic error in glFramebufferTexture2D
authorChia-I Wu <olv@lunarg.com>
Sat, 22 Oct 2011 14:17:31 +0000 (22:17 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 3 Nov 2011 07:09:44 +0000 (15:09 +0800)
Unrecognized texture target should give an error.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
src/mesa/main/fbobject.c

index ff46570bf16c3b18a6e16a7475771ed28da4add2..bcebf12400158e00deb491b05a0d884508e4e688 100644 (file)
@@ -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) {