mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 22:54:15 +01:00
[d3d11] Fix crash in GetMaximumFrameLatency with a nullptr argument
This commit is contained in:
parent
96b9058fbf
commit
acab2bd8ce
@ -2026,6 +2026,9 @@ namespace dxvk {
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D11DXGIDevice::GetMaximumFrameLatency(
|
||||
UINT* pMaxLatency) {
|
||||
if (!pMaxLatency)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
|
||||
*pMaxLatency = m_frameLatency;
|
||||
return S_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user