Do not render VR mirror texture is the headset is not rendering
DX11 will signal an error on the mirror present if the compositor is not serving the application frames to the hardware.
This commit is contained in:
parent
9f0ff9f2ff
commit
1b431cb107
@ -197,7 +197,10 @@ namespace bgfx
|
||||
}
|
||||
|
||||
// perform mirror texture blit right after the entire frame is submitted to HMD
|
||||
if (result != ovrSuccess_NotVisible)
|
||||
{
|
||||
m_mirror->blit(m_hmd);
|
||||
}
|
||||
|
||||
m_hmdToEyeOffset[0] = m_erd[0].HmdToEyeOffset;
|
||||
m_hmdToEyeOffset[1] = m_erd[1].HmdToEyeOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user