Skip to content

Commit

Permalink
HnGeometryPool: fixed issue with index buffer not being created if null
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 31, 2024
1 parent c9c2504 commit f7bf044
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Hydrogent/src/HnGeometryPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ class HnGeometryPool::IndexData final : public GeometryPoolData
BIND_INDEX_BUFFER,
USAGE_DEFAULT,
};
pDevice->CreateBuffer(Desc, nullptr, &m_Buffer);
}

pContext->UpdateBuffer(m_Buffer, GetStartIndex() * sizeof(Uint32), m_StagingData->Size, m_StagingData->Ptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
Expand Down

0 comments on commit f7bf044

Please sign in to comment.