Fixed crash on Wayland with DRM-backend.

Fixes #319.
Fixes #301.
master
Ricardo Vieira ago%!(EXTRA string=11 years) committed by Camilla Berglund
parent 3eae79f6e0
commit 704dc3e34d
  1. 2
      src/wl_monitor.c

@ -77,7 +77,7 @@ static void mode(void* data,
int size = monitor->wl.modesSize * 2;
_GLFWvidmodeWayland* modes =
realloc(monitor->wl.modes,
monitor->wl.modesSize * sizeof(_GLFWvidmodeWayland));
size * sizeof(_GLFWvidmodeWayland));
monitor->wl.modes = modes;
monitor->wl.modesSize = size;
}

Loading…
Cancel
Save