diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index db27164e..23dc38d6 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -957,11 +957,10 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate, struct CursorState cursorState = { .visible = false }; struct DesktopDamage * desktopDamage; - char accumulated_[ + struct DamageRects * accumulated = (struct DamageRects *)alloca( sizeof(struct DamageRects) + MAX_ACCUMULATED_DAMAGE * sizeof(struct FrameDamageRect) - ]; - struct DamageRects * accumulated = (struct DamageRects *) accumulated_; + ); accumulated->count = 0; INTERLOCKED_SECTION(this->desktopDamageLock, {