mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-04 14:49:35 +00:00
Textures: Detect when using a texture that's about to be destroyed.
This commit is contained in:
@@ -676,6 +676,8 @@ void ImDrawList::PushTexture(ImTextureRef tex_ref)
|
||||
{
|
||||
_TextureStack.push_back(tex_ref);
|
||||
_CmdHeader.TexRef = tex_ref;
|
||||
if (tex_ref._TexData != NULL)
|
||||
IM_ASSERT(tex_ref._TexData->WantDestroyNextFrame == false);
|
||||
_OnChangedTexture();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user