Browse Source

ref: gl: respect gl_texture_nearest value for skyboxes

pull/2/head
Alibek Omarov 1 year ago
parent
commit
b76a75d6b4
  1. 2
      ref/gl/gl_image.c

2
ref/gl/gl_image.c

@ -166,7 +166,7 @@ void GL_ApplyTextureParams( gl_texture_t *tex ) @@ -166,7 +166,7 @@ void GL_ApplyTextureParams( gl_texture_t *tex )
}
else if( FBitSet( tex->flags, TF_NOMIPMAP ) || tex->numMips <= 1 )
{
if( FBitSet( tex->flags, TF_NEAREST ) || ( IsLightMap( tex ) && gl_lightmap_nearest.value ))
if( FBitSet( tex->flags, TF_NEAREST ) || ( IsLightMap( tex ) && gl_lightmap_nearest.value ) || ( tex->flags == TF_SKYSIDE && gl_texture_nearest.value ))
{
pglTexParameteri( tex->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
pglTexParameteri( tex->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST );

Loading…
Cancel
Save