mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
force bilinear filter for default shader
This commit is contained in:
parent
708ff015cd
commit
c9afd18585
@ -154,6 +154,8 @@ static void ogl_build_programs()
|
||||
}
|
||||
}
|
||||
|
||||
BOOL bilinear = FALSE;
|
||||
|
||||
if (g_ogl.main_program)
|
||||
{
|
||||
char shader_path[MAX_PATH] = { 0 };
|
||||
@ -188,6 +190,8 @@ static void ogl_build_programs()
|
||||
g_ogl.scale_program =
|
||||
oglu_build_program(PASSTHROUGH_VERT_SHADER_CORE, CATMULL_ROM_FRAG_SHADER_CORE);
|
||||
}
|
||||
|
||||
bilinear = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -196,7 +200,7 @@ static void ogl_build_programs()
|
||||
g_oglu_got_version3 = FALSE;
|
||||
}
|
||||
|
||||
g_ogl.filter_bilinear = strstr(g_ddraw->shader, "bilinear.glsl") != NULL;
|
||||
g_ogl.filter_bilinear = strstr(g_ddraw->shader, "bilinear.glsl") != NULL || bilinear;
|
||||
}
|
||||
|
||||
if (g_oglu_got_version2 && !g_ogl.main_program)
|
||||
|
Loading…
x
Reference in New Issue
Block a user