Skip to content

Commit

Permalink
ci: fix macos build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance.H committed Sep 12, 2024
1 parent 0e01f4b commit e6b8c91
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/system_test/MassSpring3D/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ static void initGlutState(int argc, char** argv, const char* window_title = "",
glutInitWindowSize(window_width, window_height);
glutInitWindowPosition(0, 0);
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
#ifdef __APPLE__
glutInitContextVersion(3, 3);
glutInitContextFlags(GLUT_CORE_PROFILE);
#endif
// TODO: Fix error of OpenGL version in macOS
// #ifdef __APPLE__
// glutInitContextVersion(3, 3);
// glutInitContextFlags(GLUT_CORE_PROFILE);
// #endif
glutCreateWindow(window_title);
glutDisplayFunc(&display);
glutReshapeFunc(&reshape);
Expand Down

0 comments on commit e6b8c91

Please sign in to comment.