From 258fd73e6e8b91e2ee86c895e18f7e63aa568897 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 27 Sep 2022 22:12:18 +0200 Subject: [PATCH] Remove dead code. --- profiler/src/BackendGlfw.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/profiler/src/BackendGlfw.cpp b/profiler/src/BackendGlfw.cpp index a05baee1..cdbcf994 100644 --- a/profiler/src/BackendGlfw.cpp +++ b/profiler/src/BackendGlfw.cpp @@ -149,17 +149,6 @@ void Backend::EndFrame() glClear( GL_COLOR_BUFFER_BIT ); ImGui_ImplOpenGL3_RenderDrawData( ImGui::GetDrawData() ); - // Update and Render additional Platform Windows - // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. - // For this specific demo app we could also call glfwMakeContextCurrent(window) directly) - if( ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_ViewportsEnable ) - { - GLFWwindow* backup_current_context = glfwGetCurrentContext(); - ImGui::UpdatePlatformWindows(); - ImGui::RenderPlatformWindowsDefault(); - glfwMakeContextCurrent( backup_current_context ); - } - glfwSwapBuffers( s_window ); }