ref: move PARM_SURF_SAMPLESIZE handling to the engine
This commit is contained in:
parent
2c2045d413
commit
107a6aed01
3 changed files with 4 additions and 8 deletions
|
@ -172,6 +172,10 @@ intptr_t CL_RenderGetParm( const int parm, const int arg, const qboolean checkRe
|
||||||
return refState.height;
|
return refState.height;
|
||||||
case PARM_SKY_SPHERE:
|
case PARM_SKY_SPHERE:
|
||||||
return FBitSet( world.flags, FWORLD_SKYSPHERE ) && !FBitSet( world.flags, FWORLD_CUSTOM_SKYBOX );
|
return FBitSet( world.flags, FWORLD_SKYSPHERE ) && !FBitSet( world.flags, FWORLD_CUSTOM_SKYBOX );
|
||||||
|
case PARM_SURF_SAMPLESIZE:
|
||||||
|
if( arg >= 0 && arg < cl.worldmodel->numsurfaces )
|
||||||
|
return Mod_SampleSizeForFace( &cl.worldmodel->surfaces[arg] );
|
||||||
|
return LM_SAMPLE_SIZE;
|
||||||
default:
|
default:
|
||||||
// indicates call from client.dll
|
// indicates call from client.dll
|
||||||
if( checkRef )
|
if( checkRef )
|
||||||
|
|
|
@ -225,10 +225,6 @@ static int GL_RefGetParm( int parm, int arg )
|
||||||
return GL_MaxTextureUnits();
|
return GL_MaxTextureUnits();
|
||||||
case PARM_REBUILD_GAMMA:
|
case PARM_REBUILD_GAMMA:
|
||||||
return glConfig.softwareGammaUpdate;
|
return glConfig.softwareGammaUpdate;
|
||||||
case PARM_SURF_SAMPLESIZE:
|
|
||||||
if( arg >= 0 && arg < WORLDMODEL->numsurfaces )
|
|
||||||
return gEngfuncs.Mod_SampleSizeForFace( &WORLDMODEL->surfaces[arg] );
|
|
||||||
return LM_SAMPLE_SIZE;
|
|
||||||
case PARM_GL_CONTEXT_TYPE:
|
case PARM_GL_CONTEXT_TYPE:
|
||||||
return glConfig.context;
|
return glConfig.context;
|
||||||
case PARM_GLES_WRAPPER:
|
case PARM_GLES_WRAPPER:
|
||||||
|
|
|
@ -159,10 +159,6 @@ static int GL_RefGetParm( int parm, int arg )
|
||||||
return 0; //GL_MaxTextureUnits();
|
return 0; //GL_MaxTextureUnits();
|
||||||
case PARM_REBUILD_GAMMA:
|
case PARM_REBUILD_GAMMA:
|
||||||
return 0;
|
return 0;
|
||||||
case PARM_SURF_SAMPLESIZE:
|
|
||||||
if( arg >= 0 && arg < WORLDMODEL->numsurfaces )
|
|
||||||
return gEngfuncs.Mod_SampleSizeForFace( &WORLDMODEL->surfaces[arg] );
|
|
||||||
return LM_SAMPLE_SIZE;
|
|
||||||
case PARM_GL_CONTEXT_TYPE:
|
case PARM_GL_CONTEXT_TYPE:
|
||||||
return 0; //glConfig.context;
|
return 0; //glConfig.context;
|
||||||
case PARM_GLES_WRAPPER:
|
case PARM_GLES_WRAPPER:
|
||||||
|
|
Loading…
Add table
Reference in a new issue