Skip to content

Commit

Permalink
#364 allow to use custom shaders with HD 4000 for some games at least
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Jan 14, 2025
1 parent 86b4ec0 commit a753a85
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/render_ogl.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,17 @@ static void ogl_build_programs()
if (_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.4252") == 0 ||
_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.5161") == 0)
{
shader_path[0] = 0;
g_config.shader[0] = 0;
/* First time compiling the shader works, second time fails */
static BOOL once;
if (!once)
{
once = TRUE;
}
else
{
shader_path[0] = 0;
g_config.shader[0] = 0;
}
}

/* detect common upscaling shaders and disable them if no upscaling is required */
Expand Down

0 comments on commit a753a85

Please sign in to comment.