Remove dead code.

This commit is contained in:
Bartosz Taudul 2022-09-27 22:12:18 +02:00
parent 232fb5aaa4
commit 258fd73e6e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -149,17 +149,6 @@ void Backend::EndFrame()
glClear( GL_COLOR_BUFFER_BIT ); glClear( GL_COLOR_BUFFER_BIT );
ImGui_ImplOpenGL3_RenderDrawData( ImGui::GetDrawData() ); 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 ); glfwSwapBuffers( s_window );
} }