1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[d3d9] Ignore clear with Count == 0 and non-NULL rect

This commit is contained in:
Georg Lehmann 2021-08-02 18:46:02 +02:00 committed by Joshie
parent 546bd6f462
commit a1fbcf35de

View File

@ -1377,6 +1377,9 @@ namespace dxvk {
D3DCOLOR Color,
float Z,
DWORD Stencil) {
if (unlikely(!Count && pRects))
return D3D_OK;
D3D9DeviceLock lock = LockDevice();
const auto& vp = m_state.viewport;