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

switch to gdi renderer if d3d12 fails

This commit is contained in:
FunkyFr3sh 2022-09-20 12:16:10 +02:00
parent 8bea6fd369
commit 8c23af938d

View File

@ -58,11 +58,16 @@ BOOL d3d9_create()
args.Enable9On12 = TRUE;
IDirect3D9* (WINAPI * d3d_create9on12)(INT, D3D9ON12_ARGS*, UINT) = NULL;
IDirect3D9* (WINAPI * d3d_create9)(UINT) = NULL;
if (g_ddraw->d3d9on12)
{
d3d_create9on12 = (void*)GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9On12");
}
else
{
d3d_create9 = (void*)GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9");
}
IDirect3D9* (WINAPI * d3d_create9)(UINT) = (void*)GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9");