diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index d68254c7a..1d9d32413 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -1594,9 +1594,6 @@ namespace dxvk { HRESULT STDMETHODCALLTYPE D3D9DeviceEx::SetViewport(const D3DVIEWPORT9* pViewport) { D3D9DeviceLock lock = LockDevice(); - if (unlikely(pViewport == nullptr)) - return D3DERR_INVALIDCALL; - if (unlikely(ShouldRecord())) return m_recorder->SetViewport(pViewport);