summaryrefslogtreecommitdiff
path: root/themes/SummerTheme.cpp
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-10-13 18:50:52 -0400
committermattkae <mattkae@protonmail.com>2022-10-13 18:50:52 -0400
commit0b48323783a37059c9af13a5bda403465b1fea14 (patch)
treee728d54b51801d9bbb8206e9eecc6ab687113140 /themes/SummerTheme.cpp
parentcc8bbef4bc8257b65757396e4431e2ca9b5f30ff (diff)
Fixing bug where deallocation wasn't happening
Diffstat (limited to 'themes/SummerTheme.cpp')
-rw-r--r--themes/SummerTheme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/SummerTheme.cpp b/themes/SummerTheme.cpp
index b23cc71..20bb310 100644
--- a/themes/SummerTheme.cpp
+++ b/themes/SummerTheme.cpp
@@ -23,7 +23,6 @@ void SummerTheme::unload() {
sun.unload();
}
-
void Sun::load(Renderer2d* renderer) {
matte::List<Vertex2D> vertices;
matte::List<u32> indices;
@@ -49,6 +48,7 @@ void Sun::load(Renderer2d* renderer) {
mesh.load(&vertices.data[0], vertices.numElements, &indices.data[0], indices.numElements, renderer);
mesh.model = Mat4x4().translateByVec2(Vector2(renderer->context->width / 2.f, renderer->context->height / 2.f));
vertices.deallocate();
+ indices.deallocate();
}
void Sun::update(f32 dtSeconds) {