merge opengl core and direct3d9on12 into renderer= setting
This commit is contained in:
parent
63c13d8a63
commit
54f23331e8
4 changed files with 234 additions and 218 deletions
|
@ -65,16 +65,12 @@ BOOL d3d9_create()
|
|||
args.Enable9On12 = TRUE;
|
||||
|
||||
IDirect3D9* (WINAPI * d3d_create9on12)(INT, D3D9ON12_ARGS*, UINT) = NULL;
|
||||
IDirect3D9* (WINAPI * d3d_create9)(UINT) = NULL;
|
||||
IDirect3D9* (WINAPI * d3d_create9)(UINT) = (void*)real_GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9");
|
||||
|
||||
if (g_ddraw->d3d9on12)
|
||||
{
|
||||
d3d_create9on12 = (void*)real_GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9On12");
|
||||
}
|
||||
else
|
||||
{
|
||||
d3d_create9 = (void*)real_GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9");
|
||||
}
|
||||
|
||||
if ((d3d_create9on12 && (d3d9on12 = g_d3d9.instance = d3d_create9on12(D3D_SDK_VERSION, &args, 1))) ||
|
||||
(d3d_create9 && (g_d3d9.instance = d3d_create9(D3D_SDK_VERSION))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue