[d3d9] Don't actually unbind buffers

This commit is contained in:
Robin Kertels 2024-02-15 00:03:55 +01:00 committed by Joshie
parent 9491b56beb
commit 738fd4f895
1 changed files with 7 additions and 1 deletions

View File

@ -3254,6 +3254,11 @@ namespace dxvk {
vbo.offset = OffsetInBytes;
vbo.stride = Stride;
} else {
// D3D9 doesn't actually unbind any vertex buffer when passing null.
// Operation Flashpoint: Red River relies on this behavior.
needsUpdate = false;
vbo.offset = 0;
}
if (needsUpdate)
@ -3359,7 +3364,8 @@ namespace dxvk {
m_state.indices = buffer;
BindIndices();
if (buffer != nullptr)
BindIndices();
return D3D_OK;
}