From dc1415539806e012e3cfca1b4315cabb84831c57 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 25 Jun 2021 19:11:52 +0300 Subject: [PATCH] waver : move core update outside of frame rendering --- .gitignore | 2 +- examples/waver/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0b7e197..7a72417 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ build -build-em +build-* compile_commands.json .clangd .cache diff --git a/examples/waver/main.cpp b/examples/waver/main.cpp index bcd4969..7139f47 100644 --- a/examples/waver/main.cpp +++ b/examples/waver/main.cpp @@ -293,12 +293,12 @@ int main(int argc, char** argv) { renderMain(); updateMain(); + ImGui_EndFrame(window); + #ifdef __EMSCRIPTEN__ updateCore(); #endif - ImGui_EndFrame(window); - return true; };