summaryrefslogtreecommitdiff
path: root/src/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model.cpp')
-rw-r--r--src/model.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/model.cpp b/src/model.cpp
index 06ddf65..c0a35d8 100644
--- a/src/model.cpp
+++ b/src/model.cpp
@@ -70,9 +70,8 @@ cg_cModel_draw(mrb_state *mrb, mrb_value self)
instance.position = **position;
instance.rotation = **rotation;
- auto &instances =
- cg_core.vk_graphics_pipeline->models_to_draw[
- cg_core.vk_graphics_pipeline->current_frame][*ptr];
+ auto &instances = cg_core.vk_graphics_pipeline_3d->models_to_draw[
+ cg_core.vk_renderer->current_frame][*ptr];
instances.push_back(instance);
return self;