mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] egl: avoid overflowing damage buffer
We allocate 10 rectangles for overlay damage as agreed on Discord.
This commit is contained in:
parent
fdbdf6f167
commit
58ab77d237
1 changed files with 2 additions and 2 deletions
|
@ -1007,8 +1007,8 @@ bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
|
|||
hasOverlay |= egl_help_render(this->help, this->screenScaleX, this->screenScaleY);
|
||||
hasOverlay |= egl_damage_render(this->damage, newFrame ? desktopDamage : NULL);
|
||||
|
||||
struct Rect damage[KVMFR_MAX_DAMAGE_RECTS + 2];
|
||||
int damageIdx = app_renderOverlay(damage, KVMFR_MAX_DAMAGE_RECTS);
|
||||
struct Rect damage[KVMFR_MAX_DAMAGE_RECTS + 12];
|
||||
int damageIdx = app_renderOverlay(damage, 10);
|
||||
|
||||
// if no overlay
|
||||
if (damageIdx == -1)
|
||||
|
|
Loading…
Reference in a new issue