diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-08-19 12:13:16 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-08-19 12:13:16 +0200 |
| commit | ae0ea5fb65b0340eabf4e9e424ba79787600dc1b (patch) | |
| tree | ee2d117c2baead26308b2fa240a90c080b191452 /src/main.cpp | |
| parent | d78200b71b259b87f401b24906385af4e2553fbe (diff) | |
Generate BVH using new mesh data structure
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
