Removed not necessary switching of video mode.

This commit is contained in:
KAndrey 2013-11-25 20:23:45 +04:00
parent 06289110e7
commit 1edf9664d3

View File

@ -62,6 +62,12 @@ static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id)
//
void _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
{
GLFWvidmode current;
_glfwPlatformGetVideoMode(monitor, &current);
if (_glfwCompareVideoModes(&current, desired) == 0)
return;
if (_glfw.x11.randr.available)
{
int i, j;