Fix crash after pressing F1. #30

Open
YeetElite wants to merge 1 commits from YeetElite/main into main
YeetElite commented 2024-12-22 00:40:47 +00:00 (Migrated from github.com)

Moved ImGui::Render(); to the main rendering loop for now so it'll always run and not accidentally abort when uiEnabled is false.

Issue:

scuffed_mc: /home/david/ScuffedMinecraft/ScuffedMinecraft/vendor/imgui/imgui.cpp:10090: void ImGui::ErrorCheckNewFrameSanityChecks(): Assertion `(g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"' failed.

Thread 1 "scuffed_mc" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, 
    no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No such file or directory.
Moved `ImGui::Render();` to the main rendering loop for now so it'll always run and not accidentally abort when `uiEnabled` is false. ### Issue: > ``` > scuffed_mc: /home/david/ScuffedMinecraft/ScuffedMinecraft/vendor/imgui/imgui.cpp:10090: void ImGui::ErrorCheckNewFrameSanityChecks(): Assertion `(g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"' failed. > > Thread 1 "scuffed_mc" received signal SIGABRT, Aborted. > __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, > no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 > 44 ./nptl/pthread_kill.c: No such file or directory. > ```
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin YeetElite/main:YeetElite/main
git checkout YeetElite/main
Sign in to join this conversation.
No description provided.