Merge pull request #919 from mendsley/fix_vrleak

Release all D3D11 VR eye render target views
This commit is contained in:
Branimir Karadžić 2016-09-16 16:10:50 -07:00 committed by GitHub
commit f65f6303d9

View File

@ -3765,7 +3765,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
{
for (int eye = 0; eye < 2; ++eye)
{
for (uint32_t ii = 0; ii < BX_COUNTOF(m_eyeRtv); ++ii)
for (uint32_t ii = 0; ii < BX_COUNTOF(m_eyeRtv[eye]); ++ii)
{
DX_RELEASE(m_eyeRtv[eye][ii], 0);
}