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

#92 reset upscale hack on resize for both opengl and d3d9

This commit is contained in:
FunkyFr3sh 2021-05-15 03:18:49 +02:00
parent e6c878fc49
commit 7f04db3dd3
2 changed files with 6 additions and 1 deletions

View File

@ -436,5 +436,9 @@ DWORD WINAPI d3d9_render_main(void)
fpsl_frame_end();
}
if (g_ddraw->vhack)
InterlockedExchange(&g_ddraw->upscale_hack_active, FALSE);
return 0;
}

View File

@ -789,7 +789,8 @@ static void ogl_render()
fpsl_frame_end();
}
InterlockedExchange(&g_ddraw->upscale_hack_active, FALSE);
if (g_ddraw->vhack)
InterlockedExchange(&g_ddraw->upscale_hack_active, FALSE);
}
static void ogl_delete_context(HGLRC context)