Browse Source

common: render_api: rename TF_ALLOW_NEAREST_TOGGLE to just TF_ALLOW_NEAREST, it's just shorter

master
Alibek Omarov 10 months ago
parent
commit
725b7ea7f9
  1. 2
      common/render_api.h
  2. 4
      engine/ref_api.h
  3. 2
      ref/gl/gl_image.c
  4. 2
      ref/gl/gl_warp.c

2
common/render_api.h

@ -108,7 +108,7 @@ typedef enum @@ -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

4
engine/ref_api.h

@ -46,8 +46,8 @@ GNU General Public License for more details. @@ -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)

2
ref/gl/gl_image.c

@ -131,7 +131,7 @@ qboolean GL_TextureFilteringEnabled( const gl_texture_t *tex ) @@ -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;

2
ref/gl/gl_warp.c

@ -882,7 +882,7 @@ void R_InitRipples( void ) @@ -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…
Cancel
Save