ref: move PARM_SKY_SPHERE handling to the engine

This commit is contained in:
Alibek Omarov 2024-06-10 22:54:01 +03:00
parent 30fe471d2b
commit 2c2045d413
2 changed files with 2 additions and 2 deletions

View File

@ -170,6 +170,8 @@ intptr_t CL_RenderGetParm( const int parm, const int arg, const qboolean checkRe
return refState.width;
case PARM_SCREEN_HEIGHT:
return refState.height;
case PARM_SKY_SPHERE:
return FBitSet( world.flags, FWORLD_SKYSPHERE ) && !FBitSet( world.flags, FWORLD_CUSTOM_SKYBOX );
default:
// indicates call from client.dll
if( checkRef )

View File

@ -235,8 +235,6 @@ static int GL_RefGetParm( int parm, int arg )
return glConfig.wrapper;
case PARM_STENCIL_ACTIVE:
return glState.stencilEnabled;
case PARM_SKY_SPHERE:
return FBitSet( tr.world->flags, FWORLD_SKYSPHERE ) && !FBitSet( tr.world->flags, FWORLD_CUSTOM_SKYBOX );
case PARM_TEX_FILTERING:
if( arg < 0 )
return gl_texture_nearest.value == 0.0f;