change back driver change from previous commit
authorRoland Scheidegger <sroland@tungstengraphics.com>
Sun, 15 Jul 2007 20:53:59 +0000 (22:53 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Sun, 15 Jul 2007 20:53:59 +0000 (22:53 +0200)
src/mesa/drivers/dri/i915tex/intel_context.c

index cb3ec4ccfadfb3f17826abffb5b42046f8284b88..ec4a7a746d48485be1a143e8140df6cb0ff655f8 100644 (file)
@@ -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) {