]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
clear scissor fix
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2011 21:55:45 +0000 (21:55 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Feb 2011 21:55:45 +0000 (21:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10800 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index 346e28f0515e4d1e38226970d623b97997119954..d756c8ee41b7fb072b6177cf1ffd8db12020881e 100644 (file)
@@ -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;