From 8b55d2ce6c0b200c4a60da68623bf25815f5cddd Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 31 May 2020 22:09:46 +0000 Subject: [PATCH] Fix broken scissoring with the skybox when r_viewscale > 2 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_sky.c b/r_sky.c index f0647f08..6d3af0be 100644 --- 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); } //=============================================================== -- 2.39.2