From b76a75d6b47da8b41a6da1c543dc3da929042cc2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 20 Oct 2023 18:52:43 +0300 Subject: [PATCH] ref: gl: respect gl_texture_nearest value for skyboxes --- ref/gl/gl_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_image.c b/ref/gl/gl_image.c index f0ff212c..355f6c49 100644 --- a/ref/gl/gl_image.c +++ b/ref/gl/gl_image.c @@ -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 );