test/testdyngl.c
changeset 1402 d910939febfa
parent 1386 2b7e0180a72c
child 1436 b5d4f280c960
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
    94 	glfuncs f;
    94 	glfuncs f;
    95 	int i;
    95 	int i;
    96 	SDL_Event event;
    96 	SDL_Event event;
    97 	int done=0;
    97 	int done=0;
    98 	GLfloat pixels[NB_PIXELS*3];
    98 	GLfloat pixels[NB_PIXELS*3];
    99 #if defined(_WIN32)
    99 #if defined(__IRIX__)
   100 	char *gl_library = "OpenGL32.DLL";
   100 	const char *gl_library = "libGL.so";
       
   101 #elif defined(__MACOSX__)
       
   102 	const char *gl_library = "/usr/X11R6/lib/libGL.1.dylib";
   101 #elif defined(__QNXNTO__)
   103 #elif defined(__QNXNTO__)
   102 	char *gl_library = "libGL.so.3";
   104 	const char *gl_library = "libGL.so.3";
   103 #elif defined(_SGI_SOURCE)
   105 #elif defined(__WIN32__)
   104 	char *gl_library = "libGL.so";
   106 	const char *gl_library = "OpenGL32.DLL";
   105 #else
   107 #else
   106 	char *gl_library = "libGL.so.1";
   108 	const char *gl_library = "libGL.so.1";
   107 #endif
   109 #endif
   108 	
   110 
   109 	if (argv[1]) {
   111 	if (argv[1]) {
   110 		gl_library = argv[1];
   112 		gl_library = argv[1];
   111 	}
   113 	}
   112 	
   114 	
   113 	if (SDL_Init(SDL_INIT_VIDEO)<0)
   115 	if (SDL_Init(SDL_INIT_VIDEO)<0)