src/video/x11/SDL_x11gl.c
changeset 180 578815880307
parent 127 0bcae11eba14
child 252 e8157fcb3114
     1.1 --- a/src/video/x11/SDL_x11gl.c	Thu Sep 13 16:15:43 2001 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Thu Sep 13 16:41:03 2001 +0000
     1.3 @@ -360,15 +360,23 @@
     1.4  	X11_GL_UnloadLibrary(this);
     1.5  
     1.6  	/* Load new function pointers */
     1.7 -	this->gl_data->glXGetProcAddress = dlsym(handle, "glXGetProcAddressARB");
     1.8 -	this->gl_data->glXChooseVisual = dlsym(handle, "glXChooseVisual");
     1.9 -	this->gl_data->glXCreateContext = dlsym(handle, "glXCreateContext");
    1.10 -	this->gl_data->glXDestroyContext = dlsym(handle, "glXDestroyContext");
    1.11 -	this->gl_data->glXMakeCurrent = dlsym(handle, "glXMakeCurrent");
    1.12 -	this->gl_data->glXSwapBuffers = dlsym(handle, "glXSwapBuffers");
    1.13 -	this->gl_data->glXGetConfig = dlsym(handle, "glXGetConfig");
    1.14 +	this->gl_data->glXGetProcAddress =
    1.15 +		(void *(*)(const GLubyte *)) dlsym(handle, "glXGetProcAddressARB");
    1.16 +	this->gl_data->glXChooseVisual =
    1.17 +		(XVisualInfo *(*)(Display *, int, int *)) dlsym(handle, "glXChooseVisual");
    1.18 +	this->gl_data->glXCreateContext =
    1.19 +		(GLXContext (*)(Display *, XVisualInfo *, GLXContext, int)) dlsym(handle, "glXCreateContext");
    1.20 +	this->gl_data->glXDestroyContext =
    1.21 +		(void (*)(Display *, GLXContext)) dlsym(handle, "glXDestroyContext");
    1.22 +	this->gl_data->glXMakeCurrent =
    1.23 +		(int (*)(Display *, GLXDrawable, GLXContext)) dlsym(handle, "glXMakeCurrent");
    1.24 +	this->gl_data->glXSwapBuffers =
    1.25 +		(void (*)(Display *, GLXDrawable)) dlsym(handle, "glXSwapBuffers");
    1.26 +	this->gl_data->glXGetConfig =
    1.27 +		(int (*)(Display *, XVisualInfo *, int, int *)) dlsym(handle, "glXGetConfig");
    1.28  	/* We don't compare below for this in case we're not using Mesa. */
    1.29 -	this->gl_data->glXReleaseBuffersMESA = dlsym( handle, "glXReleaseBuffersMESA" );
    1.30 +	this->gl_data->glXReleaseBuffersMESA =
    1.31 +		(void (*)(Display *, GLXDrawable)) dlsym( handle, "glXReleaseBuffersMESA" );
    1.32  
    1.33  	if ( (this->gl_data->glXChooseVisual == NULL) || 
    1.34  	     (this->gl_data->glXCreateContext == NULL) ||