From: eihrul Date: Fri, 4 Feb 2011 21:55:45 +0000 (+0000) Subject: clear scissor fix X-Git-Tag: xonotic-v0.5.0~438^2~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=27b0ab03ed59ecad0f409b1ec29a82c3cf47fa18;p=xonotic%2Fdarkplaces.git clear scissor fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10800 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;