1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-26 12:18:51 -05:00

Finally made working version with MacOS Cocoa. Have to force the correct version of OpenGL at the window creation

This commit is contained in:
Gordon McCann 2021-12-25 16:58:51 -05:00
parent 227cd9620b
commit 7fe746c99d
2 changed files with 9 additions and 2 deletions

View File

@ -40,6 +40,13 @@ namespace Navigator {
glfwSetErrorCallback(GLFWErrorCallback);
}
#ifdef __APPLE__
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT,true);
#endif
m_window = glfwCreateWindow((int)m_data.width, (int)m_data.height, m_data.name.c_str(), nullptr, nullptr);
m_context = new OpenGLContext(m_window);

@ -1 +1 @@
Subproject commit 37435d59625642f246f8ee2ecace0326dcf90fbd
Subproject commit 1b5d6dbc7c1c24aa4c32defb88026c8143e757bf