1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00
This commit is contained in:
FunkyFr3sh 2024-12-10 22:01:55 +01:00
parent ca35888d87
commit 1bb1ffd8b8

View File

@ -248,12 +248,12 @@ static void ogl_build_programs()
_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 */
if (_stricmp(g_oglu_version_long, "4.0.0 - Build 10.18.10.4252") == 0)
{
char shader_path_tmp[MAX_PATH] = { 0 };
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */