Fix opengl OVR texture lifetime issues

Clear mirror and eye textures of OVRRenderI at startup
instead of in the individual renderer interfaces
This commit is contained in:
Matthew Endsley
2016-09-16 14:58:43 -07:00
parent 37f00de7de
commit fd6ed06968
4 changed files with 8 additions and 8 deletions

View File

@@ -3610,12 +3610,6 @@ BX_PRAGMA_DIAGNOSTIC_POP();
}
#if BGFX_CONFIG_USE_OVR
OVRRenderD3D11::OVRRenderD3D11()
{
m_mirrorTexture = NULL;
memset(m_textureSwapChain, 0, sizeof(m_textureSwapChain));
}
void OVRRenderD3D11::create(const ovrSession& _session, int _msaaSamples, int _mirrorWidth, int _mirrorHeight)
{
ovrHmdDesc hmdDesc = ovr_GetHmdDesc(_session);