DrawList, Fonts: fixed PushFont()/AddImage() not restoring correct atlas texture id when using multiple atlas (#8694)

This also needs 24f7328.
This commit is contained in:
ocornut
2025-06-17 11:56:43 +02:00
parent 24f7328e5f
commit fe048efeab
2 changed files with 4 additions and 0 deletions

View File

@@ -695,6 +695,7 @@ void ImDrawList::_SetTexture(ImTextureRef tex_ref)
if (_CmdHeader.TexRef == tex_ref)
return;
_CmdHeader.TexRef = tex_ref;
_TextureStack.back() = tex_ref;
_OnChangedTexture();
}