# HG changeset patch # User John Tsiombikas # Date 1346623201 -10800 # Node ID a22997b0470e245844dd255aa81e45e5ed4bd316 # Parent b45febfd29222698c5918fd9f5a1af1e06679ade fixed the visualization diff -r b45febfd2922 -r a22997b0470e test/vis/test.c --- a/test/vis/test.c Mon Apr 16 00:30:59 2012 +0300 +++ b/test/vis/test.c Mon Sep 03 01:00:01 2012 +0300 @@ -33,6 +33,8 @@ { int i; + init_gl(argc, argv); + if(argv[1]) { if(!isdigit(argv[1][0])) { fprintf(stderr, "pass a fucking number, not: %s\n", argv[1]); @@ -54,7 +56,7 @@ rb_inserti(tree, i, 0); } - init_gl(argc, argv); + glutMainLoop(); return 0; } @@ -75,7 +77,7 @@ { glutInitWindowSize(1280, 720); glutInit(&argc, argv); - glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_MULTISAMPLE); + glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE | GLUT_MULTISAMPLE); glutCreateWindow("foo"); @@ -87,8 +89,6 @@ glEnable(GL_DEPTH_TEST); glEnable(GL_MULTISAMPLE); - - glutMainLoop(); } void disp(void)