|
|
@@ -3856,8 +3856,17 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|
|
PIX_BEGINEVENT(D3DCOLOR_RGBA(0xff, 0x00, 0x00, 0xff), viewNameW);
|
|
|
}
|
|
|
|
|
|
- viewState.m_rect.m_x = eye * (viewState.m_rect.m_width+1)/2;
|
|
|
- viewState.m_rect.m_width /= 2;
|
|
|
+#if BGFX_CONFIG_USE_OVR
|
|
|
+ if (m_ovr.isEnabled())
|
|
|
+ {
|
|
|
+ m_ovr.getViewport(eye, &viewState.m_rect);
|
|
|
+ }
|
|
|
+ else
|
|
|
+#endif // BGFX_CONFIG_USE_OVR
|
|
|
+ {
|
|
|
+ viewState.m_rect.m_x = eye * (viewState.m_rect.m_width+1)/2;
|
|
|
+ viewState.m_rect.m_width /= 2;
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|