From 2894b80625e14c1bbb49350fa0613ce12d8c7156 Mon Sep 17 00:00:00 2001 From: Thomas Lindemeier Date: Tue, 11 Jun 2024 11:41:07 +0200 Subject: [PATCH] Update VertexArrayObject.cxx --- src/VertexArrayObject.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VertexArrayObject.cxx b/src/VertexArrayObject.cxx index f0837e7..ee3a2f2 100644 --- a/src/VertexArrayObject.cxx +++ b/src/VertexArrayObject.cxx @@ -54,8 +54,8 @@ void VertexArrayObject::bind(bool bind) const { */ void VertexArrayObject::render(const DrawMode& mode, const uint32_t first, const uint32_t count) { - glDrawArrays(static_cast(mode), static_cast(first), - static_cast(count)); + glDrawArrays(static_cast(mode), static_cast(first), + static_cast(count)); } /** @@ -76,9 +76,9 @@ void VertexArrayObject::renderAll(const DrawMode& mode) { throw std::runtime_error("not implemented"); } - glDrawArrays( - static_cast(mode), static_cast(0), - static_cast(mVboMap.begin()->second->getVerticesCount() / numEl)); + glDrawArrays( + static_cast(mode), static_cast(0), + static_cast(mVboMap.begin()->second->getVerticesCount() / numEl)); } void VertexArrayObject::addVertexBufferObject(