diff options
Diffstat (limited to 'themes/Snowflake.cpp')
-rw-r--r-- | themes/Snowflake.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/themes/Snowflake.cpp b/themes/Snowflake.cpp index 9a8abde..d5373f4 100644 --- a/themes/Snowflake.cpp +++ b/themes/Snowflake.cpp @@ -179,6 +179,8 @@ void SnowflakeParticleRenderer::render(Renderer2d* renderer) { void SnowflakeParticleRenderer::unload() { glDeleteVertexArrays(1, &vao); glDeleteBuffers(1, &vbo); + vao = 0; + vbo = 0; vertices.deallocate(); delete [] updateData; } |