comparison src/video/x11/SDL_x11gl.c @ 180:578815880307

Do proper typecasting so this compiles on IRIX
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Sep 2001 16:41:03 +0000
parents 0bcae11eba14
children e8157fcb3114
comparison
equal deleted inserted replaced
179:ec9ec33673a2 180:578815880307
358 358
359 /* Unload the old driver and reset the pointers */ 359 /* Unload the old driver and reset the pointers */
360 X11_GL_UnloadLibrary(this); 360 X11_GL_UnloadLibrary(this);
361 361
362 /* Load new function pointers */ 362 /* Load new function pointers */
363 this->gl_data->glXGetProcAddress = dlsym(handle, "glXGetProcAddressARB"); 363 this->gl_data->glXGetProcAddress =
364 this->gl_data->glXChooseVisual = dlsym(handle, "glXChooseVisual"); 364 (void *(*)(const GLubyte *)) dlsym(handle, "glXGetProcAddressARB");
365 this->gl_data->glXCreateContext = dlsym(handle, "glXCreateContext"); 365 this->gl_data->glXChooseVisual =
366 this->gl_data->glXDestroyContext = dlsym(handle, "glXDestroyContext"); 366 (XVisualInfo *(*)(Display *, int, int *)) dlsym(handle, "glXChooseVisual");
367 this->gl_data->glXMakeCurrent = dlsym(handle, "glXMakeCurrent"); 367 this->gl_data->glXCreateContext =
368 this->gl_data->glXSwapBuffers = dlsym(handle, "glXSwapBuffers"); 368 (GLXContext (*)(Display *, XVisualInfo *, GLXContext, int)) dlsym(handle, "glXCreateContext");
369 this->gl_data->glXGetConfig = dlsym(handle, "glXGetConfig"); 369 this->gl_data->glXDestroyContext =
370 (void (*)(Display *, GLXContext)) dlsym(handle, "glXDestroyContext");
371 this->gl_data->glXMakeCurrent =
372 (int (*)(Display *, GLXDrawable, GLXContext)) dlsym(handle, "glXMakeCurrent");
373 this->gl_data->glXSwapBuffers =
374 (void (*)(Display *, GLXDrawable)) dlsym(handle, "glXSwapBuffers");
375 this->gl_data->glXGetConfig =
376 (int (*)(Display *, XVisualInfo *, int, int *)) dlsym(handle, "glXGetConfig");
370 /* We don't compare below for this in case we're not using Mesa. */ 377 /* We don't compare below for this in case we're not using Mesa. */
371 this->gl_data->glXReleaseBuffersMESA = dlsym( handle, "glXReleaseBuffersMESA" ); 378 this->gl_data->glXReleaseBuffersMESA =
379 (void (*)(Display *, GLXDrawable)) dlsym( handle, "glXReleaseBuffersMESA" );
372 380
373 if ( (this->gl_data->glXChooseVisual == NULL) || 381 if ( (this->gl_data->glXChooseVisual == NULL) ||
374 (this->gl_data->glXCreateContext == NULL) || 382 (this->gl_data->glXCreateContext == NULL) ||
375 (this->gl_data->glXDestroyContext == NULL) || 383 (this->gl_data->glXDestroyContext == NULL) ||
376 (this->gl_data->glXMakeCurrent == NULL) || 384 (this->gl_data->glXMakeCurrent == NULL) ||