From 5e2ef6b193fc823709cfde1418a016a7f40df7cf Mon Sep 17 00:00:00 2001 From: eihrul Date: Sat, 2 Apr 2011 20:29:18 +0000 Subject: [PATCH] fix flipped scissor coordinates in dpsoftrast render path git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11014 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=5842da67194bd48275e9216b26834f84ca911fbc --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 509d69f8..8d6fd065 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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: -- 2.39.2