summaryrefslogtreecommitdiff
path: root/src/rendering
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering')
-rw-r--r--src/rendering/src/rendering.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rendering/src/rendering.c b/src/rendering/src/rendering.c
index 3b2f0a8..d373a7b 100644
--- a/src/rendering/src/rendering.c
+++ b/src/rendering/src/rendering.c
@@ -377,8 +377,8 @@ i32 renderbatch_add_ext(RenderBatch* renderbatch, RenderObject* obj, Transform*
if ((1 + renderbatch->inst_count) * sizeof(BatchModelInstance) > renderbatch->inst_size) {
// Realloc if necessary
const usize sz = renderbatch->inst_size * 2;
- renderbatch->models = realloc(renderbatch->instances, sz);
- renderbatch->msize = sz;
+ renderbatch->instances = realloc(renderbatch->instances, sz);
+ renderbatch->inst_size = sz;
}
BatchModelInstance inst = {