]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix broken scissoring with the skybox when r_viewscale > 2
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 May 2020 22:09:46 +0000 (22:09 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 May 2020 22:09:46 +0000 (22:09 +0000)
Adjusted to the correct resolutions. This happened when deferred shadows
and shadowmapping were both turned off.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12616 d7cf8633-e32d-0410-b094-e92efae38249

r_sky.c

diff --git a/r_sky.c b/r_sky.c
index f0647f086409439f1e4a7a26542c07e8c9ed1074..6d3af0be8fb771abd1772b96f4d82a9413004880 100644 (file)
--- a/r_sky.c
+++ b/r_sky.c
@@ -432,7 +432,7 @@ void R_Sky(void)
                //GL_Clear(GL_DEPTH_BUFFER_BIT);
        }
        */
-       GL_Scissor(0, 0, vid.width, vid.height);
+       GL_Scissor(0, 0, r_fb.screentexturewidth, r_fb.screentextureheight);
 }
 
 //===============================================================