From 1d2626674e701c153d9e1acf5ba34747080300f9 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 20 Dec 2021 10:07:34 +0000 Subject: [PATCH] Fix skyrooms with openxr. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6143 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_warp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/gl/gl_warp.c b/engine/gl/gl_warp.c index 99cd91b27..c30f96d0e 100644 --- a/engine/gl/gl_warp.c +++ b/engine/gl/gl_warp.c @@ -291,6 +291,7 @@ qboolean R_DrawSkyroom(shader_t *skyshader) { float vmat[16]; refdef_t oldrefdef; + int oldarea = r_viewarea, oldcluster[2] = {r_viewcluster,r_viewcluster2}; // extern cvar_t r_ignoreentpvs; //legacy value is 1... if (r_viewcluster == -1) @@ -353,6 +354,9 @@ qboolean R_DrawSkyroom(shader_t *skyshader) Surf_SetupFrame(); Surf_DrawWorld (); + r_viewarea = oldarea; + r_viewcluster = oldcluster[0]; + r_viewcluster2 = oldcluster[1]; r_refdef = oldrefdef; /*broken stuff*/