mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[d3d9] Only change vertex offset draw parameters when necessary
... Only change it when the vertex data is actually dynamically uploaded.
This commit is contained in:
parent
e9fc071d95
commit
3145020a62
@ -5307,11 +5307,13 @@ namespace dxvk {
|
|||||||
m_flags.set(D3D9DeviceFlag::DirtyVertexBuffers);
|
m_flags.set(D3D9DeviceFlag::DirtyVertexBuffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the draw call parameters to reflect the changed vertex buffers
|
if (dynamicSysmemVBOs) {
|
||||||
if (NumIndices != 0) {
|
// Change the draw call parameters to reflect the changed vertex buffers
|
||||||
BaseVertexIndex = -FirstVertexIndex;
|
if (NumIndices != 0) {
|
||||||
} else {
|
BaseVertexIndex = -FirstVertexIndex;
|
||||||
FirstVertexIndex = 0;
|
} else {
|
||||||
|
FirstVertexIndex = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dynamicSysmemIBO) {
|
if (dynamicSysmemIBO) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user