summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-01-30 12:37:54 -0800
committerEric Anholt <eric@anholt.net>2010-01-30 12:38:31 -0800
commita44219c5543ade267f668312e1faf773c41eedb8 (patch)
treeff86d90619c09ae0d34bfa55410629fd75e3376f /src/mesa/drivers
parentb6ac2403aca240c72c8622ddbc3a4e123d5aa37f (diff)
intel: Fix inverting of inversion test for windows in glClear cleanup.
Bug #26290.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_blit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c
index f12a1c6fd3..31d4f3d421 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.c
+++ b/src/mesa/drivers/dri/intel/intel_blit.c
@@ -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;