mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
always use default shader for HD 4000
This commit is contained in:
parent
8a770092e1
commit
89d7b0f63d
@ -248,29 +248,13 @@ static void ogl_build_programs()
|
|||||||
_snprintf(shader_path, sizeof(shader_path) - 1, "%s%s", g_config.dll_path, g_config.shader);
|
_snprintf(shader_path, sizeof(shader_path) - 1, "%s%s", g_config.dll_path, g_config.shader);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hack for Intel HD 4000 driver bug - disable multipass shader */
|
/* Hack for Intel HD 4000 driver bug - force default shader */
|
||||||
TRACE(" OGL Version=%s\n", g_oglu_version_long);
|
|
||||||
if (_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.4252") == 0 ||
|
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)
|
_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.5161") == 0)
|
||||||
{
|
{
|
||||||
TRACE(" OGL 1\n");
|
shader_path[0] = 0;
|
||||||
char shader_path_tmp[MAX_PATH] = { 0 };
|
g_config.shader[0] = 0;
|
||||||
|
|
||||||
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
|
|
||||||
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
|
|
||||||
|
|
||||||
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
|
|
||||||
{
|
|
||||||
TRACE(" OGL 2\n");
|
|
||||||
strcat(shader_path_tmp, ".pass1");
|
|
||||||
|
|
||||||
if (FILE_EXISTS(shader_path_tmp))
|
|
||||||
{
|
|
||||||
TRACE(" OGL 3\n");
|
|
||||||
shader_path[0] = 0;
|
|
||||||
g_config.shader[0] = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* detect common upscaling shaders and disable them if no upscaling is required */
|
/* detect common upscaling shaders and disable them if no upscaling is required */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user