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:
parent
78d22cc7a5
commit
a6156856e5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user