From d8ba30af11f1894fcdd9138a8bc71ff054932bb6 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 22 Oct 2011 22:17:31 +0800 Subject: [PATCH] mesa: fix a logic error in glFramebufferTexture2D Unrecognized texture target should give an error. Reviewed-by: Brian Paul Acked-by: Jakob Bornecrantz --- src/mesa/main/fbobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2