From 8e53e166de2a82e4d6a6325af1e4960f3b8d4aee Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Thu, 19 Dec 2024 11:19:34 +1300 Subject: [PATCH] Fix incorrect culling of multi config scroll containers --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 9f6f17a..01e9198 100644 --- a/clay.h +++ b/clay.h @@ -2603,7 +2603,7 @@ void Clay__CalculateFinalLayout() { .id = currentElement->id, }; - bool offscreen = Clay__ElementIsOffscreen(¤tElementBoundingBox, scrollOffset); + bool offscreen = Clay__ElementIsOffscreen(¤tElementBoundingBox, CLAY__INIT(Clay_Vector2) {}); // Culling - Don't bother to generate render commands for rectangles entirely outside the screen - this won't stop their children from being rendered if they overflow bool shouldRender = !offscreen; switch (elementConfig->type) {