mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Dxgi tearing support (#2601)
* present tearing support * use existing syncInterval variable
This commit is contained in:
@@ -122,6 +122,7 @@ namespace bgfx
|
||||
, m_factory(NULL)
|
||||
, m_adapter(NULL)
|
||||
, m_output(NULL)
|
||||
, m_tearingSupported(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -389,6 +390,8 @@ namespace bgfx
|
||||
: 0
|
||||
;
|
||||
|
||||
m_tearingSupported = allowTearing;
|
||||
|
||||
DX_RELEASE_I(factory5);
|
||||
}
|
||||
|
||||
@@ -785,6 +788,11 @@ namespace bgfx
|
||||
#endif // BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT
|
||||
}
|
||||
|
||||
bool Dxgi::tearingSupported()
|
||||
{
|
||||
return m_tearingSupported;
|
||||
}
|
||||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // BGFX_CONFIG_RENDERER_DIRECT3D11 || BGFX_CONFIG_RENDERER_DIRECT3D12
|
||||
|
||||
Reference in New Issue
Block a user