From a44219c5543ade267f668312e1faf773c41eedb8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 30 Jan 2010 12:37:54 -0800 Subject: intel: Fix inverting of inversion test for windows in glClear cleanup. Bug #26290. --- src/mesa/drivers/dri/intel/intel_blit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c index f12a1c6fd39..31d4f3d421b 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; -- cgit v1.2.3