From f7bf0442e34c22afb47d402477916b940d79f226 Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 31 Oct 2024 14:43:49 -0700 Subject: [PATCH] HnGeometryPool: fixed issue with index buffer not being created if null --- Hydrogent/src/HnGeometryPool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Hydrogent/src/HnGeometryPool.cpp b/Hydrogent/src/HnGeometryPool.cpp index 18b6c615..5f9fc8c6 100644 --- a/Hydrogent/src/HnGeometryPool.cpp +++ b/Hydrogent/src/HnGeometryPool.cpp @@ -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);