1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add option to allow upscaling via shader2

must insert "-noscale" into filename to activate
This commit is contained in:
FunkyFr3sh 2024-08-13 04:45:05 +02:00
parent f15cac1824
commit e0b7d26856

View File

@ -259,7 +259,9 @@ static void ogl_build_programs()
{
g_ogl.shader1_program = oglu_build_program_from_file(shader_path, core_profile);
if (g_ogl.shader1_program && strstr(g_config.shader, "xbrz-freescale-multipass.glsl") != NULL)
if (g_ogl.shader1_program &&
(strstr(g_config.shader, "xbrz-freescale-multipass.glsl") != NULL ||
strstr(g_config.shader, "-noscale") != NULL))
{
g_ogl.shader2_upscale = TRUE;
}