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) {