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:
parent
2903816aad
commit
d8ba30af11
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue