Backends: SDL2: Gamepad handlng: amend bf1c96d. (#3884, #6559, #6890)

This commit is contained in:
ocornut
2024-02-13 16:31:33 +01:00
parent bf1c96d4fa
commit f966da1f8f
2 changed files with 4 additions and 2 deletions

View File

@ -530,7 +530,9 @@ void ImGui_ImplSDL2_Shutdown()
SDL_free(bd->ClipboardTextData);
for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++)
SDL_FreeCursor(bd->MouseCursors[cursor_n]);
bd->MouseLastCursor = nullptr;
if (bd->Gamepad && bd->GamepadSelectAuto)
SDL_GameControllerClose(bd->Gamepad);
io.BackendPlatformName = nullptr;
io.BackendPlatformUserData = nullptr;