Made context creation use correct CGDisplay.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 1ffd8f667f
commit 94853a3a05
  1. 2
      src/nsgl_context.m

@ -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

Loading…
Cancel
Save