This commit is contained in:
Jorijn van der Graaf 2025-11-24 06:08:35 +01:00
commit 83b45a0dea
9 changed files with 251 additions and 7 deletions

View file

@ -184,7 +184,7 @@ void RenderElement(UiElementBufferBuffer* element, WindowWayland* window) {
}
std::sort(element->children.begin(), element->children.end(), [](UiElement* a, UiElement* b){ return a->transform.z < b->transform.z; });
for(UiElement* child : element->children) {
RenderElement(element, window);
RenderElement(static_cast<UiElementBufferBuffer*>(child), window);
}
}