mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-20 05:08:04 +00:00
Fix incorrect culling of multi config scroll containers
This commit is contained in:
parent
004ed63372
commit
8e53e166de
2
clay.h
2
clay.h
@ -2603,7 +2603,7 @@ void Clay__CalculateFinalLayout() {
|
|||||||
.id = currentElement->id,
|
.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
|
// 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;
|
bool shouldRender = !offscreen;
|
||||||
switch (elementConfig->type) {
|
switch (elementConfig->type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user