Avoid X11 video mode setting if modes match.

This matches the behavior of the Windows port.
This commit is contained in:
Camilla Berglund 2013-11-14 12:59:08 +01:00
parent 4fe88a52fa
commit a79b93f5bc

View File

@ -111,6 +111,9 @@ void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
}
}
if (bestMode == ci->mode)
return;
if (monitor->x11.oldMode == None)
monitor->x11.oldMode = ci->mode;