mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[client] egl: use alloca
instead of typecasted char array
This commit is contained in:
parent
9d71655273
commit
67ea8e06ba
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user