diff options
Diffstat (limited to '3rdparty/bgfx/src/dxgi.cpp')
-rw-r--r-- | 3rdparty/bgfx/src/dxgi.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/3rdparty/bgfx/src/dxgi.cpp b/3rdparty/bgfx/src/dxgi.cpp index 05d77519a27..34c3e69ce29 100644 --- a/3rdparty/bgfx/src/dxgi.cpp +++ b/3rdparty/bgfx/src/dxgi.cpp @@ -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() const + { + return m_tearingSupported; + } + } // namespace bgfx #endif // BGFX_CONFIG_RENDERER_DIRECT3D11 || BGFX_CONFIG_RENDERER_DIRECT3D12 |