From ae0ea5fb65b0340eabf4e9e424ba79787600dc1b Mon Sep 17 00:00:00 2001 From: ladevieq Date: Fri, 19 Aug 2022 12:13:16 +0200 Subject: Generate BVH using new mesh data structure --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2f53dd6..576b709 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,7 +71,7 @@ void render(scene& main_scene, vkrenderer& renderer) { // capture from that device. See the documentation below for a longer // explanation if(rdoc_api) rdoc_api->StartFrameCapture(NULL, NULL); - main_scene.scene_buffer->write(&main_scene.meta, 0, sizeof(main_scene.meta)); + main_scene.scene_buffer->write(&main_scene.meta, renderer.frame_index() * sizeof(main_scene.meta), sizeof(main_scene.meta)); // ImDrawData* draw_data = ImGui::GetDrawData(); -- cgit v1.3