|
|
@ -603,8 +603,11 @@ static void ImGui_ImplGlfw_SwapBuffers(ImGuiViewport* viewport, void*) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ImGuiViewportDataGlfw* data = (ImGuiViewportDataGlfw*)viewport->PlatformUserData; |
|
|
|
ImGuiViewportDataGlfw* data = (ImGuiViewportDataGlfw*)viewport->PlatformUserData; |
|
|
|
if (g_ClientApi == GlfwClientApi_OpenGL)
|
|
|
|
if (g_ClientApi == GlfwClientApi_OpenGL)
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
glfwMakeContextCurrent(data->Window); |
|
|
|
glfwSwapBuffers(data->Window); |
|
|
|
glfwSwapBuffers(data->Window); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------------
|
|
|
|
//--------------------------------------------------------------------------------------------------------
|
|
|
|
// IME (Input Method Editor) basic support for e.g. Asian language users
|
|
|
|
// IME (Input Method Editor) basic support for e.g. Asian language users
|
|
|
|