Made context creation use correct CGDisplay.

This commit is contained in:
Camilla Berglund 2013-04-16 23:33:49 +02:00
parent 1ffd8f667f
commit 94853a3a05

View File

@ -147,7 +147,7 @@ int _glfwCreateContext(_GLFWwindow* window,
{
ADD_ATTR(NSOpenGLPFANoRecovery);
ADD_ATTR2(NSOpenGLPFAScreenMask,
CGDisplayIDToOpenGLDisplayMask(CGMainDisplayID()));
CGDisplayIDToOpenGLDisplayMask(wndconfig->monitor->ns.displayID));
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070