From a6156856e5bffdc8793e9642e7963c60b36e3c27 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 11 Aug 2021 12:25:18 +0100 Subject: [PATCH] [d3d9] Don't check for NULL pViewport This cannot be NULL. --- src/d3d9/d3d9_device.cpp | 3 --- 1 file changed, 3 deletions(-) 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);