Fixed invalid pointer when Xrandr is unavailable.

Fixes #497.
Closes #498.
master
Eric Larson ago%!(EXTRA string=10 years) committed by Camilla Berglund
parent b415b9aacf
commit ad1739c63f
  1. 2
      src/x11_monitor.c

@ -201,7 +201,7 @@ void _glfwRestoreVideoMode(_GLFWmonitor* monitor)
_GLFWmonitor** _glfwPlatformGetMonitors(int* count)
{
int i, j, k, found = 0;
_GLFWmonitor** monitors;
_GLFWmonitor** monitors = NULL;
*count = 0;

Loading…
Cancel
Save