Skip to content

Commit

Permalink
found bug in SimpleIndexVAO where the index buffer was not deleted be…
Browse files Browse the repository at this point in the history
…fore new buffer added
  • Loading branch information
jmacey committed Dec 12, 2023
1 parent 31c7bd5 commit 0bc2769
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SimpleIndexVAO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ void SimpleIndexVAO::setData(const AbstractVAO::VertexData &_data)
if(m_allocated)
{
glDeleteBuffers(1, &m_buffer);
glDeleteBuffers(1, &m_idxBuffer);

}

glGenBuffers(1, &m_buffer);
Expand Down

0 comments on commit 0bc2769

Please sign in to comment.