mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
render/egl: fix zero-length VLA
This commit is contained in:
parent
20690346c7
commit
f42816ce3f
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ bool wlr_egl_swap_buffers(struct wlr_egl *egl, EGLSurface surface,
|
|||
int nrects;
|
||||
pixman_box32_t *rects =
|
||||
pixman_region32_rectangles(&flipped_damage, &nrects);
|
||||
EGLint egl_damage[4 * nrects];
|
||||
EGLint egl_damage[4 * nrects + 1];
|
||||
for (int i = 0; i < nrects; ++i) {
|
||||
egl_damage[4*i] = rects[i].x1;
|
||||
egl_damage[4*i + 1] = rects[i].y1;
|
||||
|
|
Loading…
Reference in a new issue