mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13: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(
|
||||
BOOL Fullscreen,
|
||||
IDXGIOutput* pTarget) final {
|
||||
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
|
||||
if (likely(m_dispatch != nullptr))
|
||||
return m_dispatch->SetFullscreenState(Fullscreen, pTarget);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user