OVR: Fixed uninitialized session.

This commit is contained in:
Branimir Karadžić 2016-10-15 20:54:42 -07:00
parent b7e29467c2
commit 2da0e00222
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}