Skip to content

Commit

Permalink
ref: gl: respect gl_texture_nearest value for skyboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 20, 2023
1 parent a251600 commit b76a75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref/gl/gl_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit b76a75d

Please sign in to comment.