IO: amend ImGuiPlatformIO::ClearPlatformHandlers(), ClearRendererHandlers(). (#8945, #2769)

This commit is contained in:
ocornut
2025-09-18 17:07:21 +02:00
parent aa9476a38a
commit 1ad9de5aae

View File

@@ -16228,17 +16228,31 @@ void ImGuiPlatformIO::ClearPlatformHandlers()
{ {
Platform_GetClipboardTextFn = NULL; Platform_GetClipboardTextFn = NULL;
Platform_SetClipboardTextFn = NULL; Platform_SetClipboardTextFn = NULL;
Platform_ClipboardUserData = NULL;
Platform_OpenInShellFn = NULL; Platform_OpenInShellFn = NULL;
Platform_OpenInShellUserData = NULL;
Platform_SetImeDataFn = NULL; Platform_SetImeDataFn = NULL;
Platform_ImeUserData = NULL; Platform_ClipboardUserData = Platform_OpenInShellUserData = Platform_ImeUserData = NULL;
Platform_CreateWindow = Platform_DestroyWindow = Platform_ShowWindow = NULL;
Platform_SetWindowPos = Platform_SetWindowSize = NULL;
Platform_GetWindowPos = Platform_GetWindowSize = Platform_GetWindowFramebufferScale = NULL;
Platform_SetWindowFocus = NULL;
Platform_GetWindowFocus = Platform_GetWindowMinimized = NULL;
Platform_SetWindowTitle = NULL;
Platform_SetWindowAlpha = NULL;
Platform_UpdateWindow = NULL;
Platform_RenderWindow = Platform_SwapBuffers = NULL;
Platform_GetWindowDpiScale = NULL;
Platform_OnChangedViewport = NULL;
Platform_GetWindowWorkAreaInsets = NULL;
Platform_CreateVkSurface = NULL;
} }
void ImGuiPlatformIO::ClearRendererHandlers() void ImGuiPlatformIO::ClearRendererHandlers()
{ {
Renderer_TextureMaxWidth = Renderer_TextureMaxHeight = 0; Renderer_TextureMaxWidth = Renderer_TextureMaxHeight = 0;
Renderer_RenderState = NULL; Renderer_RenderState = NULL;
Renderer_CreateWindow = Renderer_DestroyWindow = NULL;
Renderer_SetWindowSize = NULL;
Renderer_RenderWindow = Renderer_SwapBuffers = NULL;
} }
ImGuiViewport* ImGui::GetMainViewport() ImGuiViewport* ImGui::GetMainViewport()