mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +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 CursorState cursorState = { .visible = false };
|
||||||
struct DesktopDamage * desktopDamage;
|
struct DesktopDamage * desktopDamage;
|
||||||
|
|
||||||
char accumulated_[
|
struct DamageRects * accumulated = (struct DamageRects *)alloca(
|
||||||
sizeof(struct DamageRects) +
|
sizeof(struct DamageRects) +
|
||||||
MAX_ACCUMULATED_DAMAGE * sizeof(struct FrameDamageRect)
|
MAX_ACCUMULATED_DAMAGE * sizeof(struct FrameDamageRect)
|
||||||
];
|
);
|
||||||
struct DamageRects * accumulated = (struct DamageRects *) accumulated_;
|
|
||||||
accumulated->count = 0;
|
accumulated->count = 0;
|
||||||
|
|
||||||
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
INTERLOCKED_SECTION(this->desktopDamageLock, {
|
||||||
|
Loading…
Reference in New Issue
Block a user