fixed a bug about RenderablePrimitiveCreater::SetIBO

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-09-21 17:15:12 +08:00
parent f58ce4f98b
commit 5559178e7c

View File

@ -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);