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

only use catmull rom if upscaling is required

This commit is contained in:
FunkyFr3sh 2023-03-29 01:11:45 +02:00
parent c9afd18585
commit cd3a439a95

View File

@ -181,7 +181,9 @@ static void ogl_build_programs()
{
g_ogl.scale_program = oglu_build_program_from_file(shader_path, wglCreateContextAttribsARB != NULL);
if (!g_ogl.scale_program)
if (!g_ogl.scale_program &&
(g_ddraw->render.viewport.width != g_ddraw->width ||
g_ddraw->render.viewport.height != g_ddraw->height))
{
g_ogl.scale_program = oglu_build_program(PASSTHROUGH_VERT_SHADER, CATMULL_ROM_FRAG_SHADER);