Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imgui_impl_opengl2: Add ImGui_ImplOpemGL2_NewFrame_NoAssert()
Here I'm introducing a new method ImGui_ImplOpemGL2_NewFrame_NoAssert() for Dear ImGui's OpenGL 2 implementation/ This is apecial edition of ImGui_ImplOpenGL2_NewFrame() for VST plugin editors. It won't assert if OpenGL backend is not intialized, just return bool state. This function aims at UI drawing method called on effEditIdle, without using thread or mutex. As effEditIdle will always be triggered even when you are closing the editor. At this time, the original ImGui_ImplOpenGL2_NewFrame() won't continue, then crash with an assertion. To use in production, You must check if this method success or not before other steps, or your editor may crash!
- Loading branch information