Cashing of indices and vertices count

This commit is contained in:
Antoine Pilote
2023-10-02 01:35:58 -04:00
parent cf7a6c20d6
commit fc7645b4c6
5 changed files with 24 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ namespace Nuake {
glMultiDrawElements(GetType(mode), &count, GetType(type), indices, drawCount);
}
void OGLRendererAPI::DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices)
void OGLRendererAPI::DrawElements(const RendererEnum mode, const uint32_t count, const RendererEnum type, const void* indices)
{
glDrawElements(GetType(mode), count, GetType(type), indices);
}