summaryrefslogtreecommitdiff
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-05-10 15:00:41 -0700
committerIan Romanick <idr@us.ibm.com>2007-05-10 15:01:52 -0700
commit64a6a50155e665c2b81e9d70ce71cfd5f1fcaef1 (patch)
treeb91f680342a169c7d4829238f3878adfd8536a15 /src/mesa/main/enable.c
parentc103453d4f95ea5a965c613c9ad337406e7c7cdb (diff)
Fix reversed enable logic in enable_texture
Fix bug inserted in commit c9e723e5013443df984cb3987ffa3a9ba3384b89. Discovered by Oliver McFadden (z3ro).
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 1cc8446592..0e14345e73 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -198,7 +198,7 @@ enable_texture(GLcontext *ctx, GLboolean state, GLbitfield bit)
{
const GLuint curr = ctx->Texture.CurrentUnit;
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[curr];
- const GLuint newenabled = (state)
+ const GLuint newenabled = (!state)
? (texUnit->Enabled & ~bit) : (texUnit->Enabled | bit);
if (!ctx->DrawBuffer->Visual.rgbMode || texUnit->Enabled == newenabled)