intel: Fix inverting of inversion test for windows in glClear cleanup.
authorEric Anholt <eric@anholt.net>
Sat, 30 Jan 2010 20:37:54 +0000 (12:37 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 30 Jan 2010 20:38:31 +0000 (12:38 -0800)
Bug #26290.

src/mesa/drivers/dri/intel/intel_blit.c

index f12a1c6..31d4f3d 100644 (file)
@@ -229,9 +229,9 @@ intelClearWithBlit(GLcontext *ctx, GLbitfield mask)
 
    cx = fb->_Xmin;
    if (fb->Name == 0)
-      cy = fb->_Ymin;
-   else
       cy = ctx->DrawBuffer->Height - fb->_Ymax;
+   else
+      cy = fb->_Ymin;
    cw = fb->_Xmax - fb->_Xmin;
    ch = fb->_Ymax - fb->_Ymin;