# HG changeset patch # User Sam Lantinga # Date 1000399263 0 # Node ID 578815880307325f36bee6eebf9e1da990f3824e # Parent ec9ec33673a2a740d392218735930545b10f45a1 Do proper typecasting so this compiles on IRIX diff -r ec9ec33673a2 -r 578815880307 src/video/x11/SDL_x11gl.c --- a/src/video/x11/SDL_x11gl.c Thu Sep 13 16:15:43 2001 +0000 +++ b/src/video/x11/SDL_x11gl.c Thu Sep 13 16:41:03 2001 +0000 @@ -360,15 +360,23 @@ X11_GL_UnloadLibrary(this); /* Load new function pointers */ - this->gl_data->glXGetProcAddress = dlsym(handle, "glXGetProcAddressARB"); - this->gl_data->glXChooseVisual = dlsym(handle, "glXChooseVisual"); - this->gl_data->glXCreateContext = dlsym(handle, "glXCreateContext"); - this->gl_data->glXDestroyContext = dlsym(handle, "glXDestroyContext"); - this->gl_data->glXMakeCurrent = dlsym(handle, "glXMakeCurrent"); - this->gl_data->glXSwapBuffers = dlsym(handle, "glXSwapBuffers"); - this->gl_data->glXGetConfig = dlsym(handle, "glXGetConfig"); + this->gl_data->glXGetProcAddress = + (void *(*)(const GLubyte *)) dlsym(handle, "glXGetProcAddressARB"); + this->gl_data->glXChooseVisual = + (XVisualInfo *(*)(Display *, int, int *)) dlsym(handle, "glXChooseVisual"); + this->gl_data->glXCreateContext = + (GLXContext (*)(Display *, XVisualInfo *, GLXContext, int)) dlsym(handle, "glXCreateContext"); + this->gl_data->glXDestroyContext = + (void (*)(Display *, GLXContext)) dlsym(handle, "glXDestroyContext"); + this->gl_data->glXMakeCurrent = + (int (*)(Display *, GLXDrawable, GLXContext)) dlsym(handle, "glXMakeCurrent"); + this->gl_data->glXSwapBuffers = + (void (*)(Display *, GLXDrawable)) dlsym(handle, "glXSwapBuffers"); + this->gl_data->glXGetConfig = + (int (*)(Display *, XVisualInfo *, int, int *)) dlsym(handle, "glXGetConfig"); /* We don't compare below for this in case we're not using Mesa. */ - this->gl_data->glXReleaseBuffersMESA = dlsym( handle, "glXReleaseBuffersMESA" ); + this->gl_data->glXReleaseBuffersMESA = + (void (*)(Display *, GLXDrawable)) dlsym( handle, "glXReleaseBuffersMESA" ); if ( (this->gl_data->glXChooseVisual == NULL) || (this->gl_data->glXCreateContext == NULL) ||