diff options
Diffstat (limited to 'src/model.cpp')
-rw-r--r-- | src/model.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model.cpp b/src/model.cpp index 45744f6..6a6e470 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -70,8 +70,8 @@ cg_cModel_draw(mrb_state *mrb, mrb_value self) instance.position = **position; instance.rotation = **rotation; - auto &instances = cg_core.vk_graphics_pipeline_3d->models_to_draw[ - cg_core.vk_renderer->current_frame][*ptr]; + auto &instances = cg_core.vk_renderer->models_to_draw[ + cg_core.vk_swapchain->current_frame][*ptr]; instances.push_back(instance); return self; |