mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 22:33:08 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user