Skip to content

Commit

Permalink
ci: try to fix github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
For-Chance authored and xiaoerlaigeid committed Aug 29, 2024
1 parent 10a1e19 commit b786c53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/system_test/MassSpring3D/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

// GLSHADER ///////////////////////////////////////////////////////////////////////////////////
GLShader::GLShader(GLenum shaderType) {
if (!glewIsSupported("GL_VERSION_2_0")) {
printf("OpenGL 2.0 not supported\n");
}
// if (!glewIsSupported("GL_VERSION_2_0")) {
// printf("OpenGL 2.0 not supported\n");
// }
handle = glCreateShader(shaderType);
};

Expand Down
10 changes: 5 additions & 5 deletions test/system_test/MassSpring3D/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void display() {
.count();
if (total_time > 5.0) {
std::cout << "TEST " << INSTRUCTION << "." << std::endl;
exit(0);
exit(1);
}
}
last_clock = now;
Expand Down Expand Up @@ -181,10 +181,10 @@ static void initGlutState(int argc, char** argv, const char* window_title = "",

static void initGlewState() {
GLenum err = glewInit();
if (!glewIsSupported("GL_VERSION_2_0")) {
printf("OpenGL 2.0 not supported\n");
exit(1);
}
// if (!glewIsSupported("GL_VERSION_2_0")) {
// printf("OpenGL 2.0 not supported\n");
// exit(1);
// }
if (err != GLEW_OK) {
std::cerr << "Error initializing GLEW: " << glewGetErrorString(err) << std::endl;
exit(1);
Expand Down

0 comments on commit b786c53

Please sign in to comment.