mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Backends: Win32: Fixed a crash when multiple processes are running with multi-viewports, caused by misusage of GetProp(). (#8162, #8069)
Amend fedf45c77
This commit is contained in:
parent
cdf21f6773
commit
dad1047b04
4 changed files with 32 additions and 14 deletions
|
|
@ -4856,6 +4856,13 @@ ImGuiPlatformIO& ImGui::GetPlatformIO()
|
|||
return GImGui->PlatformIO;
|
||||
}
|
||||
|
||||
// This variant exists to facilitate backends experimenting with multi-threaded parallel context. (#8069, #6293, #5856)
|
||||
ImGuiPlatformIO& ImGui::GetPlatformIOEx(ImGuiContext* ctx)
|
||||
{
|
||||
IM_ASSERT(ctx != NULL);
|
||||
return ctx->PlatformIO;
|
||||
}
|
||||
|
||||
// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame()
|
||||
ImDrawData* ImGui::GetDrawData()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue