Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. Added clipboard support. Unindexing buffers ourselves as Allegro indexed drawing primitives are buggy in the DirectX9 back-end.

This commit is contained in:
omar
2018-06-13 19:22:22 +02:00
parent 335f6fde7e
commit 185b4dde87
7 changed files with 315 additions and 24 deletions

View File

@ -190,6 +190,7 @@ void ImGui_ImplSDL2_Shutdown()
// Destroy last known clipboard data
if (g_ClipboardTextData)
SDL_free(g_ClipboardTextData);
g_ClipboardTextData = NULL;
// Destroy SDL mouse cursors
for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_Count_; cursor_n++)