From c9afd18585681c14068bcb3904cc743b2b5c01bc Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 29 Mar 2023 01:01:17 +0200 Subject: [PATCH] force bilinear filter for default shader --- src/render_ogl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/render_ogl.c b/src/render_ogl.c index 19c943c..21c6631 100644 --- a/src/render_ogl.c +++ b/src/render_ogl.c @@ -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)