summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-24 14:19:06 -0600
committerBrian Paul <brianp@vmware.com>2009-09-24 14:19:06 -0600
commitadfa778c8ea436d6e62c37327b44f6ff359ed63f (patch)
treedefa4e0cc86d7d5b5f8651b242ed75dc346a0563 /src/mesa
parent2acd5de22651a3461c0576107c8e8fab1f01469a (diff)
mesa: remove rgbMode check in enable_texture()
If the currently bound FBO isn't yet validated it's possible for rgbMode to be zero so we'll lose the texture enable. This could fix some FBO rendering glitches, but I don't know of any specific instances.
Diffstat (limited to 'src/mesa')
-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 f432be183c..47d19ab932 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -231,7 +231,7 @@ enable_texture(GLcontext *ctx, GLboolean state, GLbitfield bit)
const GLuint newenabled = (!state)
? (texUnit->Enabled & ~bit) : (texUnit->Enabled | bit);
- if (!ctx->DrawBuffer->Visual.rgbMode || texUnit->Enabled == newenabled)
+ if (texUnit->Enabled == newenabled)
return GL_FALSE;
FLUSH_VERTICES(ctx, _NEW_TEXTURE);