]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_sky.c
Fix broken scissoring with the skybox when r_viewscale > 2
[xonotic/darkplaces.git] / 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);
 }
 
 //===============================================================