fixed a bug in PrimitiveCreater::Finish

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-09-28 17:44:20 +08:00
parent cefea7229d
commit 3db94948c5

View File

@ -107,7 +107,7 @@ namespace hgl
Primitive *PrimitiveCreater::Finish()
{
const uint si_count=vil->GetCount();
const uint si_count=vil->GetCount(VertexInputGroup::Basic);
if(vbo_map.GetCount()!=si_count)
return(nullptr);