Skip to content

Commit

Permalink
Fix initialization of OpenGL on OSX, closes #601
Browse files Browse the repository at this point in the history
  • Loading branch information
johguenther committed Nov 28, 2024
1 parent a7d8c12 commit f793752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/ospExamples/GLFWOSPRayWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ GLFWOSPRayWindow::GLFWOSPRayWindow(

glfwWindowHint(GLFW_SRGB_CAPABLE, GLFW_TRUE);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
#ifdef __APPLE_
#ifdef __APPLE__
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
const char *glslVersion = "#version 150";
Expand Down
2 changes: 1 addition & 1 deletion modules/mpi/tutorials/GLFWDistribOSPRayWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GLFWDistribOSPRayWindow::GLFWDistribOSPRayWindow(const vec2i &windowSize,

glfwWindowHint(GLFW_SRGB_CAPABLE, GLFW_TRUE);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
#ifdef __APPLE_
#ifdef __APPLE__
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
const char *glslVersion = "#version 150";
Expand Down

0 comments on commit f793752

Please sign in to comment.