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:
parent
e3410eebe6
commit
1d2626674e
1 changed files with 4 additions and 0 deletions
|
@ -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*/
|
||||
|
|
Loading…
Reference in a new issue