Skip to content

Commit 89d7b0f

Browse files
committed
always use default shader for HD 4000
1 parent 8a77009 commit 89d7b0f

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

src/render_ogl.c

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -248,29 +248,13 @@ static void ogl_build_programs()
248248
_snprintf(shader_path, sizeof(shader_path) - 1, "%s%s", g_config.dll_path, g_config.shader);
249249
}
250250

251-
/* Hack for Intel HD 4000 driver bug - disable multipass shader */
252-
TRACE(" OGL Version=%s\n", g_oglu_version_long);
251+
/* Hack for Intel HD 4000 driver bug - force default shader */
252+
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-
TRACE(" OGL 1\n");
257-
char shader_path_tmp[MAX_PATH] = { 0 };
258-
259-
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
260-
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
261-
262-
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
263-
{
264-
TRACE(" OGL 2\n");
265-
strcat(shader_path_tmp, ".pass1");
266-
267-
if (FILE_EXISTS(shader_path_tmp))
268-
{
269-
TRACE(" OGL 3\n");
270-
shader_path[0] = 0;
271-
g_config.shader[0] = 0;
272-
}
273-
}
256+
shader_path[0] = 0;
257+
g_config.shader[0] = 0;
274258
}
275259

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

0 commit comments

Comments
 (0)