diff --git a/Nuake/src/Rendering/RenderCommand.cpp b/Nuake/src/Rendering/RenderCommand.cpp index a2735fc9..ca53213b 100644 --- a/Nuake/src/Rendering/RenderCommand.cpp +++ b/Nuake/src/Rendering/RenderCommand.cpp @@ -84,7 +84,7 @@ namespace Nuake { sRendererAPI->DrawMultiElements(mode, count, type, indices, drawCount); } - void RenderCommand::DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices) + void RenderCommand::DrawElements(const RendererEnum mode, const uint32_t count, const RendererEnum type, const void* indices) { sRendererAPI->DrawElements(mode, count, type, indices); } diff --git a/Nuake/src/Rendering/RenderCommand.h b/Nuake/src/Rendering/RenderCommand.h index e060d617..06b88f45 100644 --- a/Nuake/src/Rendering/RenderCommand.h +++ b/Nuake/src/Rendering/RenderCommand.h @@ -30,7 +30,7 @@ namespace Nuake { static void BindVertexArray(const unsigned int& rendererID); static void VertexAttribPointer(const unsigned int index, const int size, const RendererEnum type, bool normalized, int stride, const void* pointer); static void DrawMultiElements(const RendererEnum mode, const int count, const RendererEnum type, const void* const* indices, unsigned int drawCount); - static void DrawElements(const RendererEnum mode, const int count, const RendererEnum type, const void* indices); + static void DrawElements(const RendererEnum mode, const uint32_t count, const RendererEnum type, const void* indices); static void DrawArrays(int first, int count); static void DrawLines(int first, int count);