mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
common: render_api: rename TF_ALLOW_NEAREST_TOGGLE to just TF_ALLOW_NEAREST, it's just shorter
This commit is contained in:
parent
600d574376
commit
725b7ea7f9
@ -108,7 +108,7 @@ typedef enum
|
||||
TF_NOCOMPARE = (1<<27), // disable comparing for depth textures
|
||||
TF_ARB_16BIT = (1<<28), // keep image as 16-bit (not 24)
|
||||
TF_MULTISAMPLE = (1<<29), // multisampling texture
|
||||
TF_ALLOW_NEAREST_TOGGLE = (1<<30), // allows toggling nearest filtering for TF_NOMIPMAP textures
|
||||
TF_ALLOW_NEAREST = (1<<30), // allows toggling nearest filtering for TF_NOMIPMAP textures
|
||||
} texFlags_t;
|
||||
|
||||
typedef enum
|
||||
|
@ -46,8 +46,8 @@ GNU General Public License for more details.
|
||||
#define REF_API_VERSION 7
|
||||
|
||||
|
||||
#define TF_SKY (TF_SKYSIDE|TF_NOMIPMAP|TF_ALLOW_NEAREST_TOGGLE)
|
||||
#define TF_FONT (TF_NOMIPMAP|TF_CLAMP|TF_ALLOW_NEAREST_TOGGLE)
|
||||
#define TF_SKY (TF_SKYSIDE|TF_NOMIPMAP|TF_ALLOW_NEAREST)
|
||||
#define TF_FONT (TF_NOMIPMAP|TF_CLAMP|TF_ALLOW_NEAREST)
|
||||
#define TF_IMAGE (TF_NOMIPMAP|TF_CLAMP)
|
||||
#define TF_DECAL (TF_CLAMP)
|
||||
|
||||
|
@ -131,7 +131,7 @@ qboolean GL_TextureFilteringEnabled( const gl_texture_t *tex )
|
||||
if( FBitSet( tex->flags, TF_ATLAS_PAGE ))
|
||||
return gl_lightmap_nearest.value == 0.0f;
|
||||
|
||||
if( FBitSet( tex->flags, TF_ALLOW_NEAREST_TOGGLE ))
|
||||
if( FBitSet( tex->flags, TF_ALLOW_NEAREST ))
|
||||
return gl_texture_nearest.value == 0.0f;
|
||||
|
||||
return true;
|
||||
|
@ -882,7 +882,7 @@ void R_InitRipples( void )
|
||||
pic.numMips = 1;
|
||||
memset( pic.buffer, 0, pic.size );
|
||||
|
||||
g_ripple.rippletexturenum = GL_LoadTextureInternal( "*rippletex", &pic, TF_NOMIPMAP|TF_ALLOW_NEAREST_TOGGLE );
|
||||
g_ripple.rippletexturenum = GL_LoadTextureInternal( "*rippletex", &pic, TF_NOMIPMAP|TF_ALLOW_NEAREST );
|
||||
}
|
||||
|
||||
static void R_SwapBufs( void )
|
||||
|
Loading…
Reference in New Issue
Block a user