mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-08 15:07:53 +00:00
DrawList: reworked assert in PushTexture() to allow convenience grace period of using texture already queued for destroy during the same frame. (#9528, #8465)
Amend 131f5c57ab
This commit is contained in:
@@ -699,7 +699,7 @@ 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);
|
||||
IM_ASSERT(tex_ref._TexData->Status != ImTextureStatus_WantDestroy && tex_ref._TexData->Status != ImTextureStatus_Destroyed);
|
||||
_OnChangedTexture();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user