From 5559178e7c8c409be029759d2ae655fefff93510 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Thu, 21 Sep 2023 17:15:12 +0800 Subject: [PATCH] fixed a bug about RenderablePrimitiveCreater::SetIBO --- inc/hgl/graph/VKRenderablePrimitiveCreater.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/hgl/graph/VKRenderablePrimitiveCreater.h b/inc/hgl/graph/VKRenderablePrimitiveCreater.h index 37cc7c62..99e05b90 100644 --- a/inc/hgl/graph/VKRenderablePrimitiveCreater.h +++ b/inc/hgl/graph/VKRenderablePrimitiveCreater.h @@ -33,9 +33,9 @@ public: return(true); } - bool SetIBO(const IndexType &it,const void *buf) + bool SetIBO(const IndexType &it,const void *buf,const uint32_t index_count) { - IndexBuffer *ibo=rr->CreateIBO(it,vertex_count,buf); + IndexBuffer *ibo=rr->CreateIBO(it,index_count,buf); if(!ibo) return(false);