ref: move PARM_SKY_SPHERE handling to the engine
This commit is contained in:
parent
30fe471d2b
commit
2c2045d413
2 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue