build: Updated GLFW and OpenGL3 ImGui Backends

This commit is contained in:
WerWolv
2024-02-11 11:44:44 +01:00
parent 4519e24297
commit 5d405b4d10
6 changed files with 88 additions and 31 deletions

View File

@@ -477,6 +477,7 @@ namespace hex::init {
ImGui_ImplOpenGL3_Init("#version 150");
#elif defined(OS_WEB)
ImGui_ImplOpenGL3_Init();
ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback("#canvas");
#else
ImGui_ImplOpenGL3_Init("#version 130");
#endif

View File

@@ -487,6 +487,8 @@ namespace hex {
}
});
ImGui::GetIO().ConfigDebugIsDebuggerPresent = ::IsDebuggerPresent();
}
void Window::beginNativeWindowFrame() {

View File

@@ -877,6 +877,7 @@ namespace hex {
ImGui_ImplOpenGL3_Init("#version 150");
#elif defined(OS_WEB)
ImGui_ImplOpenGL3_Init();
ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback("#canvas");
#else
ImGui_ImplOpenGL3_Init("#version 130");
#endif