mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
align
This commit is contained in:
parent
ca35888d87
commit
1bb1ffd8b8
@ -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);
|
_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 - disable multipass shader */
|
||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
char shader_path_tmp[MAX_PATH] = { 0 };
|
char shader_path_tmp[MAX_PATH] = { 0 };
|
||||||
|
|
||||||
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
|
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
|
||||||
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
|
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user