]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix flipped scissor coordinates in dpsoftrast render path
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Apr 2011 20:29:18 +0000 (20:29 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Apr 2011 20:29:18 +0000 (20:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11014 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 8fd9447df0e4b128897080fb1e183b9700b22b35..4be0e918f9cf17e38e70b3a1b69e5c214666a675 100644 (file)
@@ -4923,11 +4923,11 @@ static void R_View_SetFrustum(const int *scissor)
                        case RENDERPATH_D3D9:
                        case RENDERPATH_D3D10:
                        case RENDERPATH_D3D11:
-                       case RENDERPATH_SOFT:
                                // non-flipped y coordinates
                                fny = -1.0 + 2.0 * (vid.height - scissor[1] - scissor[3] - r_refdef.view.viewport.y) / (double) (r_refdef.view.viewport.height);
                                fpy = -1.0 + 2.0 * (vid.height - scissor[1]              - r_refdef.view.viewport.y) / (double) (r_refdef.view.viewport.height);
                                break;
+                       case RENDERPATH_SOFT:
                        case RENDERPATH_GL11:
                        case RENDERPATH_GL13:
                        case RENDERPATH_GL20: