From: Chia-I Wu Date: Sat, 22 Oct 2011 14:17:31 +0000 (+0800) Subject: mesa: fix a logic error in glFramebufferTexture2D X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8ba30af11f1894fcdd9138a8bc71ff054932bb6;p=mesa.git mesa: fix a logic error in glFramebufferTexture2D Unrecognized texture target should give an error. Reviewed-by: Brian Paul Acked-by: Jakob Bornecrantz --- 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) {