Presort text draw calls.

This commit is contained in:
Pāvels Nadtočajevs
2026-02-25 11:53:07 +02:00
parent 8a33751039
commit 892381663b
19 changed files with 498 additions and 45 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ const Rect2 &RendererCanvasRender::Item::get_rect() const {
//must update rect
if (commands == nullptr) {
if (first_command == nullptr) {
rect = Rect2();
rect_dirty = false;
return rect;
@@ -51,7 +51,7 @@ const Rect2 &RendererCanvasRender::Item::get_rect() const {
bool found_xform = false;
bool first = true;
const Item::Command *c = commands;
const Item::Command *c = first_command;
while (c) {
Rect2 r;