mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-02 03:40:06 +00:00
Comment
This commit is contained in:
parent
60f3cfbe98
commit
5f914c9cbe
1 changed files with 1 additions and 0 deletions
|
|
@ -7587,6 +7587,7 @@ void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& a, const Im
|
|||
if ((col >> 24) == 0)
|
||||
return;
|
||||
|
||||
// FIXME-OPT: This is wasting draw calls.
|
||||
const bool push_texture_id = texture_id_stack.empty() || user_texture_id != texture_id_stack.back();
|
||||
if (push_texture_id)
|
||||
PushTextureID(user_texture_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue