mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
fix ovr compile errors (#1387)
This commit is contained in:
committed by
Branimir Karadžić
parent
bee111b4c6
commit
0c885fec2e
@@ -3089,10 +3089,10 @@ namespace bgfx { namespace d3d11
|
||||
void ovrPostReset()
|
||||
{
|
||||
#if BGFX_CONFIG_USE_OVR
|
||||
if (m_resolution.m_flags & (BGFX_RESET_HMD|BGFX_RESET_HMD_DEBUG) )
|
||||
if (m_resolution.reset & (BGFX_RESET_HMD|BGFX_RESET_HMD_DEBUG) )
|
||||
{
|
||||
const uint32_t msaaSamples = 1 << ((m_resolution.m_flags&BGFX_RESET_MSAA_MASK) >> BGFX_RESET_MSAA_SHIFT);
|
||||
m_ovr.postReset(msaaSamples, m_resolution.m_width, m_resolution.m_height);
|
||||
const uint32_t msaaSamples = 1 << ((m_resolution.reset&BGFX_RESET_MSAA_MASK) >> BGFX_RESET_MSAA_SHIFT);
|
||||
m_ovr.postReset(msaaSamples, m_resolution.width, m_resolution.height);
|
||||
}
|
||||
#endif // BGFX_CONFIG_USE_OVR
|
||||
}
|
||||
@@ -3756,8 +3756,8 @@ namespace bgfx { namespace d3d11
|
||||
ovrResult result = ovr_CommitTextureSwapChain(m_session, m_textureSwapChain);
|
||||
if (!OVR_SUCCESS(result) )
|
||||
{
|
||||
return false;
|
||||
DX_RELEASE(eyeTexture, 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
ovrLayerHeader* layerList = &m_renderLayer.Header;
|
||||
|
||||
@@ -3492,10 +3492,10 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
void ovrPostReset()
|
||||
{
|
||||
#if BGFX_CONFIG_USE_OVR
|
||||
if (m_resolution.m_flags & (BGFX_RESET_HMD|BGFX_RESET_HMD_DEBUG) )
|
||||
if (m_resolution.reset & (BGFX_RESET_HMD|BGFX_RESET_HMD_DEBUG) )
|
||||
{
|
||||
const uint32_t msaaSamples = 1 << ( (m_resolution.m_flags&BGFX_RESET_MSAA_MASK) >> BGFX_RESET_MSAA_SHIFT);
|
||||
m_ovr.postReset(msaaSamples, m_resolution.m_width, m_resolution.m_height);
|
||||
const uint32_t msaaSamples = 1 << ( (m_resolution.reset&BGFX_RESET_MSAA_MASK) >> BGFX_RESET_MSAA_SHIFT);
|
||||
m_ovr.postReset(msaaSamples, m_resolution.width, m_resolution.height);
|
||||
}
|
||||
#endif // BGFX_CONFIG_USE_OVR
|
||||
}
|
||||
@@ -4006,7 +4006,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
if (NULL == m_textureSwapChain)
|
||||
{
|
||||
const GLsizei width = _desc.m_eyeSize[0].m_w + _desc.m_eyeSize[1].m_w;
|
||||
const GLsizei height = bx::uint16_max(_desc.m_eyeSize[0].m_h, _desc.m_eyeSize[1].m_h);
|
||||
const GLsizei height = bx::uint32_max(_desc.m_eyeSize[0].m_h, _desc.m_eyeSize[1].m_h);
|
||||
|
||||
ovrTextureSwapChainDesc swapchainDesc = {};
|
||||
swapchainDesc.Type = ovrTexture_2D;
|
||||
|
||||
Reference in New Issue
Block a user