mirror of https://github.com/bkaradzic/bgfx
OVR: Fixed uninitialized session.
This commit is contained in:
parent
b7e29467c2
commit
2da0e00222
|
@ -34,11 +34,8 @@ namespace entry
|
|||
inline void winSetHwnd(::HWND _window)
|
||||
{
|
||||
bgfx::PlatformData pd;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backBuffer = NULL;
|
||||
pd.backBufferDS = NULL;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
bgfx::setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue