From a5fa4df37cae9ef99b52c76ede7ec62a84f789bc Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 10 Oct 2019 06:02:26 +0300 Subject: [PATCH] ref_gl: fix wrong texture resampling condition --- 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 edcd97f7..59ed1912 100644 --- a/ref_gl/gl_image.c +++ b/ref_gl/gl_image.c @@ -1188,7 +1188,7 @@ static qboolean GL_UploadTexture( gl_texture_t *tex, rgbdata_t *pic ) int mipCount = GL_CalcMipmapCount( tex, ( buf != NULL )); // NOTE: only single uncompressed textures can be resamples, no mips, no layers, no sides - if((( tex->depth == 1 ) && ( pic->width != tex->width )) || ( pic->height != tex->height )) + if(( tex->depth == 1 ) && (( pic->width != tex->width ) || ( pic->height != tex->height ))) data = GL_ResampleTexture( buf, pic->width, pic->height, tex->width, tex->height, normalMap ); else data = buf;