From 27b0ab03ed59ecad0f409b1ec29a82c3cf47fa18 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 4 Feb 2011 21:55:45 +0000 Subject: [PATCH] clear scissor fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10800 d7cf8633-e32d-0410-b094-e92efae38249 --- dpsoftrast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpsoftrast.c b/dpsoftrast.c index 346e28f0..d756c8ee 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -891,7 +891,7 @@ static void DPSOFTRAST_Interpret_ClearColor(DPSOFTRAST_State_Thread *thread, con DPSOFTRAST_Validate(thread, DPSOFTRAST_VALIDATE_FB); x1 = thread->fb_clearscissor[0]; y1 = thread->fb_clearscissor[1]; - x2 = thread->fb_clearscissor[2]; + x2 = thread->fb_clearscissor[0] + thread->fb_clearscissor[2]; y2 = thread->fb_clearscissor[1] + thread->fb_clearscissor[3]; t1 = (thread->index*dpsoftrast.fb_height)/dpsoftrast.numthreads; t2 = ((thread->index+1)*dpsoftrast.fb_height)/dpsoftrast.numthreads; @@ -933,7 +933,7 @@ static void DPSOFTRAST_Interpret_ClearDepth(DPSOFTRAST_State_Thread *thread, DPS DPSOFTRAST_Validate(thread, DPSOFTRAST_VALIDATE_FB); x1 = thread->fb_clearscissor[0]; y1 = thread->fb_clearscissor[1]; - x2 = thread->fb_clearscissor[2]; + x2 = thread->fb_clearscissor[0] + thread->fb_clearscissor[2]; y2 = thread->fb_clearscissor[1] + thread->fb_clearscissor[3]; t1 = (thread->index*dpsoftrast.fb_height)/dpsoftrast.numthreads; t2 = ((thread->index+1)*dpsoftrast.fb_height)/dpsoftrast.numthreads; -- 2.39.2