mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 16:08:50 +01:00
[dxgi] Also support use after free in IDXGISwapChain::SetFullscreenState()
This commit is contained in:
parent
8580bb32ca
commit
59441b1ff5
@ -224,7 +224,9 @@ namespace dxvk {
|
|||||||
HRESULT STDMETHODCALLTYPE SetFullscreenState(
|
HRESULT STDMETHODCALLTYPE SetFullscreenState(
|
||||||
BOOL Fullscreen,
|
BOOL Fullscreen,
|
||||||
IDXGIOutput* pTarget) final {
|
IDXGIOutput* pTarget) final {
|
||||||
|
if (likely(m_dispatch != nullptr))
|
||||||
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
|
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user