fix(gx): add missing initialization for d3d backend

This commit is contained in:
fallenoak 2023-03-05 16:14:33 -06:00
parent 80388f0279
commit 962efcf69d

View File

@ -14,12 +14,12 @@ class CGxDeviceD3d : public CGxDevice {
static LRESULT WindowProcD3d(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); static LRESULT WindowProcD3d(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
// Member variables // Member variables
HWND m_hwnd; HWND m_hwnd = nullptr;
ATOM m_hwndClass; ATOM m_hwndClass;
int32_t m_ownhwnd; int32_t m_ownhwnd;
HINSTANCE m_d3dLib; HINSTANCE m_d3dLib = nullptr;
LPDIRECT3D9 m_d3d; LPDIRECT3D9 m_d3d = nullptr;
LPDIRECT3DDEVICE9 m_d3dDevice; LPDIRECT3DDEVICE9 m_d3dDevice = nullptr;
D3DCAPS9 m_d3dCaps; D3DCAPS9 m_d3dCaps;
D3DDISPLAYMODE m_desktopDisplayMode; D3DDISPLAYMODE m_desktopDisplayMode;