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 ); }