mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
Fix crash on wayland with drm-backend
This commit is contained in:
parent
896d040c68
commit
06de4b9ed6
@ -77,7 +77,7 @@ static void mode(void* data,
|
|||||||
int size = monitor->wl.modesSize * 2;
|
int size = monitor->wl.modesSize * 2;
|
||||||
_GLFWvidmodeWayland* modes =
|
_GLFWvidmodeWayland* modes =
|
||||||
realloc(monitor->wl.modes,
|
realloc(monitor->wl.modes,
|
||||||
monitor->wl.modesSize * sizeof(_GLFWvidmodeWayland));
|
size * sizeof(_GLFWvidmodeWayland));
|
||||||
monitor->wl.modes = modes;
|
monitor->wl.modes = modes;
|
||||||
monitor->wl.modesSize = size;
|
monitor->wl.modesSize = size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user