[Mesa-dev] [RFC-PATCH 08/11] mesa: fix a logic error in glFramebufferTexture2D

Chia-I Wu olvaffe at gmail.com
Sun Oct 30 12:07:34 PDT 2011


From: Chia-I Wu <olv at lunarg.com>

Unrecognized texture target should give an error.
---
 src/mesa/main/fbobject.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index c56062a..5cc4417 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) {
-- 
1.7.6.3



More information about the mesa-dev mailing list