mesa: fix a logic error in glFramebufferTexture2D

Unrecognized texture target should give an error.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
Chia-I Wu 2011-10-22 22:17:31 +08:00 committed by Chia-I Wu
parent 2903816aad
commit d8ba30af11
1 changed files with 1 additions and 1 deletions

View 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) {