Mesa (master): mesa: fix a logic error in glFramebufferTexture2D
Chia-I Wu
olv at kemper.freedesktop.org
Thu Nov 3 07:52:28 UTC 2011
Module: Mesa
Branch: master
Commit: d8ba30af11f1894fcdd9138a8bc71ff054932bb6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8ba30af11f1894fcdd9138a8bc71ff054932bb6
Author: Chia-I Wu <olv at lunarg.com>
Date: Sat Oct 22 22:17:31 2011 +0800
mesa: fix a logic error in glFramebufferTexture2D
Unrecognized texture target should give an error.
Reviewed-by: Brian Paul <brianp at vmware.com>
Acked-by: Jakob Bornecrantz <jakob at vmware.com>
---
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 ff46570..bcebf12 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) {
More information about the mesa-commit
mailing list