diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-11 00:22:13 +1000 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-05-11 00:22:13 +1000 |
commit | eedd332680dbdd367197616658903f00252f5a9c (patch) | |
tree | b50b7fe4c014abd8fee65a2cb1567d8df9a38e7e /src/core.c | |
parent | 3bd21c92678c62e61c10ba730e8c839edc5e967a (diff) |
upload data using staging buffer. use vertex buffer data
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -59,9 +59,7 @@ void core_bringup() { #include <glfw3.h> /* bool should_window_close(core* core) { glfwWindowShouldClose(core->renderer.window); } */ -void core_input_update() { - input_update(&g_core.input); -} +void core_input_update() { input_update(&g_core.input); } void core_frame_begin(core* core) { render_frame_begin(&core->renderer); } void core_frame_end(core* core) { render_frame_end(&core->renderer); } @@ -76,7 +74,8 @@ bool should_exit() { } void frame_begin() { - glfwPollEvents(); - render_frame_begin(&g_core.renderer); } + glfwPollEvents(); + render_frame_begin(&g_core.renderer); +} void frame_draw() {} void frame_end() { render_frame_end(&g_core.renderer); } |