Fix skyrooms with openxr.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6143 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-12-20 10:07:34 +00:00
parent e3410eebe6
commit 1d2626674e

View file

@ -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*/