Snapshot for release 2026.10.19.2 (internal 01e8aab)

This commit is contained in:
Tom Bohar 2026-10-20 04:54:13 -04:00
commit 7439236e1d
3 changed files with 90 additions and 1 deletions

View file

@ -1353,7 +1353,10 @@ internal static partial class PluginManager
surfaceUtf8[..nameLen].CopyTo(popOut);
PopOutSurfaceSuffix.CopyTo(popOut[nameLen..]);
popOut[^1] = 0;
return RenderEmbedCore(pluginName, popOut, size, out want);
// A plugin on a second cimgui copy must see the pop-out's context there too (StrayImGuiContext).
StrayImGuiContext.Scope stray = StrayImGuiContext.Enter(current);
try { return RenderEmbedCore(pluginName, popOut, size, out want); }
finally { StrayImGuiContext.Restore(stray); }
}
return RenderEmbedCore(pluginName, surfaceUtf8, size, out want);
}