Presort text draw calls.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user