Skip to content

Commit

Permalink
Avoid passing wrong parameters in logo example to glutInit
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Sep 9, 2024
1 parent df5a585 commit d5ea6e2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/logo/logo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ GLint ps2_list, gl_list, wet_list, circle_list, tri_list, square_list, x_list;

int main(int argc, char** argv)
{
int dummy_argc = 1;
char iop_module_path[] = "iop_module_path=host0:/usr/local/sce/iop/modules";
char* dummy_argv[1];
dummy_argv[0] = iop_module_path;

glutInit(&dummy_argc, (char**)dummy_argv);
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutCreateWindow(argv[0]);

Expand Down

0 comments on commit d5ea6e2

Please sign in to comment.