summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915tex
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2007-07-15 22:53:59 +0200
committerRoland Scheidegger <[email protected]>2007-07-15 22:53:59 +0200
commit99c7e38d8363eafe2fc079ed6e7bad289d65e965 (patch)
treed9b7f5596c1cf1592f467f7accf431dab18db79c /src/mesa/drivers/dri/i915tex
parenta1ec23a30f3ff9583b32428c2c357b9ef66f3a50 (diff)
change back driver change from previous commit
Diffstat (limited to 'src/mesa/drivers/dri/i915tex')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_context.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_context.c b/src/mesa/drivers/dri/i915tex/intel_context.c
index cb3ec4ccfad..ec4a7a746d4 100644
--- a/src/mesa/drivers/dri/i915tex/intel_context.c
+++ b/src/mesa/drivers/dri/i915tex/intel_context.c
@@ -289,9 +289,12 @@ static void
intelCheckFrontUpdate(GLcontext * ctx)
{
struct intel_context *intel = intel_context(ctx);
- /* can't use _ColorDrawBufferMask as its value
- might change if a different drawable is bound! */
- if (ctx->Color.DrawBuffer[0] == GL_FRONT_LEFT) {
+ /* rely on _ColorDrawBufferMask being kept up to date by mesa
+ even for window-fbos. */
+ /* not sure. Might need that for all masks including
+ BUFFER_BIT_FRONT_LEFT maybe? */
+ if (intel->ctx.DrawBuffer->_ColorDrawBufferMask[0] ==
+ BUFFER_BIT_FRONT_LEFT) {
intelScreenPrivate *screen = intel->intelScreen;
__DRIdrawablePrivate *dPriv = intel->driDrawable;
if (screen->current_rotation != 0) {