mirror of https://github.com/doitsujin/dxvk
[d3d9] Don't actually unbind buffers
This commit is contained in:
parent
9491b56beb
commit
738fd4f895
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue