From 34d76643429dd44342b7b1683de916a6aac330a2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 26 Oct 2023 05:12:38 +0300 Subject: [PATCH] ref: gl: disable TGA flip for detail textures, GoldSrc ignores it, so we will too --- ref/gl/gl_rmisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_rmisc.c b/ref/gl/gl_rmisc.c index 617d65fa..e0d82d36 100644 --- a/ref/gl/gl_rmisc.c +++ b/ref/gl/gl_rmisc.c @@ -85,7 +85,7 @@ static void R_ParseDetailTextures( const char *filename ) if( Q_stricmp( tex->name, texname )) continue; - tex->dt_texturenum = GL_LoadTexture( detail_path, NULL, 0, TF_FORCE_COLOR ); + tex->dt_texturenum = GL_LoadTexture( detail_path, NULL, 0, TF_FORCE_COLOR|TF_NOFLIP_TGA ); // texture is loaded if( tex->dt_texturenum )