Added current window check to glfwSwapBuffers.

This commit is contained in:
Camilla Berglund 2010-09-09 21:55:41 +02:00
parent fa5d7488b8
commit 941d737636

View File

@ -868,6 +868,12 @@ GLFWAPI void glfwSwapInterval(int interval)
return;
}
if (!_glfwLibrary.currentWindow)
{
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
return;
}
_glfwPlatformSwapInterval(interval);
}