Fix calling convention of the d3d9createex function. May help #7421

This commit is contained in:
Henrik Rydgard 2015-02-03 21:26:20 +01:00
parent d4d0d334cb
commit 9b9d8592db

View File

@ -46,7 +46,7 @@ Thin3DContext *D3D9_CreateThin3DContext() {
return T3DCreateDX9Context(d3d, d3dEx, adapterId, device, deviceEx);
}
typedef HRESULT (*DIRECT3DCREATE9EX)(UINT, IDirect3D9Ex**);
typedef HRESULT (__stdcall *DIRECT3DCREATE9EX)(UINT, IDirect3D9Ex**);
bool IsWin7OrLater() {
DWORD version = GetVersion();