diff options
author | Ian Romanick <[email protected]> | 2007-05-10 15:00:41 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2007-05-10 15:01:52 -0700 |
commit | 64a6a50155e665c2b81e9d70ce71cfd5f1fcaef1 (patch) | |
tree | b91f680342a169c7d4829238f3878adfd8536a15 /src/mesa/main/enable.c | |
parent | c103453d4f95ea5a965c613c9ad337406e7c7cdb (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 1cc84465922..0e14345e730 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) |