]> git.xonotic.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)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 3 Apr 2011 20:45:19 +0000 (22:45 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11014 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5842da67194bd48275e9216b26834f84ca911fbc

gl_rmain.c

index 509d69f884887da8dd4ce02c98b11f5789938b10..8d6fd065b19310d013f7446594f8389f4563fcd8 100644 (file)
@@ -4899,11 +4899,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: