mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Handle null IBO when uploading data for draw
This commit is contained in:
parent
f254afb4fb
commit
c5a37d443a
1 changed files with 2 additions and 2 deletions
|
@ -2669,7 +2669,7 @@ namespace dxvk {
|
|||
|
||||
if (unlikely(!PrimitiveCount))
|
||||
return S_OK;
|
||||
|
||||
|
||||
bool dynamicSysmemVBOs;
|
||||
bool dynamicSysmemIBO;
|
||||
uint32_t indexCount = GetVertexCount(PrimitiveType, PrimitiveCount);
|
||||
|
@ -5145,7 +5145,7 @@ namespace dxvk {
|
|||
dynamicSysmemVBOs &= vbo == nullptr || vbo->IsSysmemDynamic();
|
||||
}
|
||||
D3D9CommonBuffer* ibo = GetCommonBuffer(m_state.indices);
|
||||
bool dynamicSysmemIBO = NumIndices != 0 && ibo->IsSysmemDynamic();
|
||||
bool dynamicSysmemIBO = NumIndices != 0 && ibo != nullptr && ibo->IsSysmemDynamic();
|
||||
|
||||
*pDynamicVBOs = dynamicSysmemVBOs;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue