From: Brian Paul Date: Thu, 24 Sep 2009 20:19:06 +0000 (-0600) Subject: mesa: remove rgbMode check in enable_texture() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adfa778c8ea436d6e62c37327b44f6ff359ed63f;p=mesa.git 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. --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index f432be183cb..47d19ab932b 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);