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;
|
return refState.width;
|
||||||
case PARM_SCREEN_HEIGHT:
|
case PARM_SCREEN_HEIGHT:
|
||||||
return refState.height;
|
return refState.height;
|
||||||
|
case PARM_SKY_SPHERE:
|
||||||
|
return FBitSet( world.flags, FWORLD_SKYSPHERE ) && !FBitSet( world.flags, FWORLD_CUSTOM_SKYBOX );
|
||||||
default:
|
default:
|
||||||
// indicates call from client.dll
|
// indicates call from client.dll
|
||||||
if( checkRef )
|
if( checkRef )
|
||||||
|
|
|
@ -235,8 +235,6 @@ static int GL_RefGetParm( int parm, int arg )
|
||||||
return glConfig.wrapper;
|
return glConfig.wrapper;
|
||||||
case PARM_STENCIL_ACTIVE:
|
case PARM_STENCIL_ACTIVE:
|
||||||
return glState.stencilEnabled;
|
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:
|
case PARM_TEX_FILTERING:
|
||||||
if( arg < 0 )
|
if( arg < 0 )
|
||||||
return gl_texture_nearest.value == 0.0f;
|
return gl_texture_nearest.value == 0.0f;
|
||||||
|
|
Loading…
Add table
Reference in a new issue