Skip to content

Commit

Permalink
Update VertexArrayObject.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
lindemeier authored Jun 11, 2024
1 parent 967d662 commit 2894b80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/VertexArrayObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<GLenum>(mode), static_cast<GLint>(first),
static_cast<GLint>(count));
glDrawArrays(static_cast<GLenum>(mode), static_cast<GLint>(first),
static_cast<GLint>(count));
}

/**
Expand All @@ -76,9 +76,9 @@ void VertexArrayObject::renderAll(const DrawMode& mode) {
throw std::runtime_error("not implemented");
}

glDrawArrays(
static_cast<GLenum>(mode), static_cast<GLint>(0),
static_cast<GLint>(mVboMap.begin()->second->getVerticesCount() / numEl));
glDrawArrays(
static_cast<GLenum>(mode), static_cast<GLint>(0),
static_cast<GLint>(mVboMap.begin()->second->getVerticesCount() / numEl));
}

void VertexArrayObject::addVertexBufferObject(
Expand Down

0 comments on commit 2894b80

Please sign in to comment.