ocornut 10 سال پیش
والد
کامیت
5f914c9cbe
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -7587,6 +7587,7 @@ void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& a, const Im
     if ((col >> 24) == 0)
     if ((col >> 24) == 0)
         return;
         return;
 
 
+    // FIXME-OPT: This is wasting draw calls.
     const bool push_texture_id = texture_id_stack.empty() || user_texture_id != texture_id_stack.back();
     const bool push_texture_id = texture_id_stack.empty() || user_texture_id != texture_id_stack.back();
     if (push_texture_id)
     if (push_texture_id)
         PushTextureID(user_texture_id);
         PushTextureID(user_texture_id);