Lost-Empire-Entertainment / Elypso-engine

C++ OpenGL game development engine for Windows.
https://elypsoengine.com
Other
14 stars 3 forks source link

Fixed ImGui throwing two errors #18

Closed nelson-steve closed 10 months ago

nelson-steve commented 10 months ago

There are two errors at runtime First: Cannot call ImGui::GetIO() (in the function InputSetup() in file input.cpp) because there's not context set. So Input::InputSetup() should be called after ImGui::CreateContext() is called - it also set the context as current.

Second: error: End is getting called too many times because of ImGui::End() (in function GUI::Render() in file gui.cpp)

Correct me if I am missing something but I had to make these changes for it to work correctly. :)

greeenlaser commented 10 months ago

Actually these issues are fixed in the test branch but thank you for letting me know! I'm currently working on 0.0.9 and i dont usually push to main until a version is complete, once 0.0.9 releases i will also release the fix ive added in the test branch.