Modules/Externals/imgui_config/ThreadLocalContext.h
Шурупов Илья Викторович 952b76e7fa
Some checks failed
CI / applications (push) Waiting to run
CI / linux (push) Waiting to run
CI / android (gallery, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (push) Blocked by required conditions
CI / android (sketch2d, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (push) Blocked by required conditions
CI / android (taskboard, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (push) Blocked by required conditions
CI / applications (pull_request) Successful in 7s
CI / android (gallery, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (pull_request) Successful in 39m33s
CI / linux (pull_request) Failing after 23m2s
CI / android (taskboard, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (pull_request) Failing after 3h16m26s
CI / android (sketch2d, 1f71c52fcfd47062073560ad166ab65b27cfdbb790ebe77ee287dcae1e398d86, SKETCH2D) (pull_request) Successful in 13m59s
Squash agent-work onto master
Single commit containing all 947 commits of agent-work on top of master
(9d6fa0c0). The tree is identical to agent-work 4b4b5ce2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:36:53 +03:00

12 lines
664 B
C

#pragma once
// Each application thread owns its ImGui and ImPlot contexts. On Android an activity recreated in the same process
// starts its application thread before the previous one has finished tearing down; with process-wide context pointers
// the old thread's DestroyContext reset the pointer the new thread was drawing with. Included through
// IMGUI_USER_CONFIG, so imgui.cpp and implot.cpp skip their own global definitions.
struct ImGuiContext;
struct ImPlotContext;
extern thread_local ImGuiContext* ModulesImGuiContext;
extern thread_local ImPlotContext* ModulesImPlotContext;
#define GImGui ModulesImGuiContext
#define GImPlot ModulesImPlotContext