]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix D3D scissoring
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2010 19:32:40 +0000 (19:32 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 13 Oct 2010 19:33:47 +0000 (21:33 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10524 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1c0077b12b379813c5ed6caeeb7385e88e10ff8e

gl_backend.c

index ba59e24a3f77d4b9348b076e179cd2d8cdd8c1c8..82b245fa52107b000bfe81c8789c0aef2f22ab30 100644 (file)
@@ -443,21 +443,6 @@ qboolean R_ScissorForBBox(const float *mins, const float *maxs, int *scissor)
        scissor[2] = ix2 - ix1;
        scissor[3] = iy2 - iy1;
 
-       // D3D Y coordinate is top to bottom, OpenGL is bottom to top, fix the D3D one
-       switch(vid.renderpath)
-       {
-       case RENDERPATH_D3D9:
-       case RENDERPATH_D3D10:
-       case RENDERPATH_D3D11:
-               scissor[1] = vid.height - scissor[1] - scissor[3];
-               break;
-       case RENDERPATH_GL11:
-       case RENDERPATH_GL13:
-       case RENDERPATH_GL20:
-       case RENDERPATH_CGGL:
-               break;
-       }
-
        return false;
 }