Browse Source

Use proper GLFW window hints on Mac.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
68fc12d900
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/window.cpp

+ 6
- 0
src/window.cpp View File

@@ -199,6 +199,12 @@ Window::Window() {
glfwWindowHint(GLFW_DOUBLEBUFFER, GLFW_TRUE);
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);

#if defined ARCH_MAC
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_TRUE);
glfwWindowHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_TRUE);
glfwWindowHint(GLFW_COCOA_MENUBAR, GLFW_TRUE);
#endif

// Create window
win = glfwCreateWindow(800, 600, "", NULL, NULL);
if (!win) {


Loading…
Cancel
Save