mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 19:24:11 +01:00
[d3d9] Fix stream count in Reset
This commit is contained in:
parent
0776d764a4
commit
8b8be7c2bf
@ -484,7 +484,7 @@ namespace dxvk {
|
|||||||
// Unbind all buffers that were still bound to the backend to avoid leaks.
|
// Unbind all buffers that were still bound to the backend to avoid leaks.
|
||||||
EmitCs([](DxvkContext* ctx) {
|
EmitCs([](DxvkContext* ctx) {
|
||||||
ctx->bindIndexBuffer(DxvkBufferSlice(), VK_INDEX_TYPE_UINT32);
|
ctx->bindIndexBuffer(DxvkBufferSlice(), VK_INDEX_TYPE_UINT32);
|
||||||
for (uint32_t i = 0; i < DxvkLimits::MaxNumVertexBindings; i++) {
|
for (uint32_t i = 0; i < caps::MaxStreams; i++) {
|
||||||
ctx->bindVertexBuffer(i, DxvkBufferSlice(), 0);
|
ctx->bindVertexBuffer(i, DxvkBufferSlice(), 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user