Skip to content

Commit

Permalink
fshack: Use texture name hack for Descent 3
Browse files Browse the repository at this point in the history
Descent 3's OpenGL renderer will use a texture conflicting with the FS
hack texture, and only a small rectangle in the bottom left corner will
be rendered.

Signed-off-by: John Brooks <[email protected]>

#211

CW-Bug-Id: #23791
  • Loading branch information
Frogging101 authored and ivyl committed May 23, 2024
1 parent eb55f0b commit 07e2dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/winex11.drv/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ static void gen_texture( struct wgl_context *ctx, GLuint *tex, enum fshack_textu
{
const char *sgi = getenv( "SteamGameId" );

texture_name_hack = sgi && (!strcmp( sgi, "6020" ) || !strcmp( sgi, "2200" ) || !strcmp( sgi, "2350" ));
texture_name_hack = sgi && (!strcmp( sgi, "6020" ) || !strcmp( sgi, "2200" ) || !strcmp( sgi, "2350" ) || !strcmp( sgi, "273590" ));
}

if (!texture_name_hack || opengl_funcs.gl.p_glIsTexture( texture_names[type] ))
Expand Down

0 comments on commit 07e2dcf

Please sign in to comment.