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 e2207e2 commit 0e01f4b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/system_test/MassSpring3D/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ static void initGlutState(int argc, char** argv, const char* window_title = "",
glutInitWindowPosition(0, 0);
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
#ifdef __APPLE__
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE | GLUT_DEBUG);
glutInitContextVersion(3, 3);
glutInitContextFlags(GLUT_CORE_PROFILE);
#endif
glutCreateWindow(window_title);
glutDisplayFunc(&display);
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/MassSpring3D/shaders/basic.vshader
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 330
#version 330 core

uniform mat4 uModelViewMatrix;
// uniform mat4 uNormalMatrix;
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/MassSpring3D/shaders/phong.fshader
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 330
#version 330 core

in vec3 vNormal;
out vec4 fragColor;
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/MassSpring3D/shaders/pick.fshader
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 330
#version 330 core

in vec2 vTexCoord;
out vec4 fragColor;
Expand Down

0 comments on commit 0e01f4b

Please sign in to comment.