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 f12a1c6fd392e04315ae85bdb9ae224c34546480..31d4f3d421b786b61f9e4fe44d902301f8bbad70 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;