Skip to content

Commit a753a85

Browse files
committed
#364 allow to use custom shaders with HD 4000 for some games at least
1 parent 86b4ec0 commit a753a85

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/render_ogl.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,17 @@ static void ogl_build_programs()
253253
if (_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.4252") == 0 ||
254254
_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.5161") == 0)
255255
{
256-
shader_path[0] = 0;
257-
g_config.shader[0] = 0;
256+
/* First time compiling the shader works, second time fails */
257+
static BOOL once;
258+
if (!once)
259+
{
260+
once = TRUE;
261+
}
262+
else
263+
{
264+
shader_path[0] = 0;
265+
g_config.shader[0] = 0;
266+
}
258267
}
259268

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

0 commit comments

Comments
 (0)