1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 04:54:15 +01:00

[d3d9] Don't check for NULL pViewport

This cannot be NULL.
This commit is contained in:
Joshua Ashton 2021-08-11 12:25:18 +01:00 committed by Joshie
parent 78d22cc7a5
commit a6156856e5

View File

@ -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);