updated examples that are first_triangle.cpp and second_triangle.cpp

This commit is contained in:
2023-05-08 09:50:45 +08:00
parent 958183bb29
commit c8cbf020eb
3 changed files with 13 additions and 6 deletions

View File

@@ -205,7 +205,7 @@ public:
cb->BindDescriptorSets(ri);
cb->BindVBO(ri);
if (vid->index_buffer)
if (vid->index_buffer->buffer)
cb->DrawIndexed(vid->index_buffer->buffer->GetCount());
else
cb->Draw(vid->vertex_count);