Add error message if not using SDL_LoadObject SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sun, 14 Jan 2007 14:24:36 +0000
branchSDL-1.2
changeset 39050e0883cb7137
parent 3904 d8371d2dc524
child 3906 e3bf970d9494
Add error message if not using SDL_LoadObject
src/video/x11/SDL_x11gl.c
     1.1 --- a/src/video/x11/SDL_x11gl.c	Thu Jan 11 20:33:13 2007 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Sun Jan 14 14:24:36 2007 +0000
     1.3 @@ -479,7 +479,11 @@
     1.4  
     1.5  	handle = GL_LoadObject(path);
     1.6  	if ( handle == NULL ) {
     1.7 +#if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN)
     1.8 +		SDL_SetError("Failed loading %s", path);
     1.9 +#else
    1.10  		/* SDL_LoadObject() will call SDL_SetError() for us. */
    1.11 +#endif
    1.12  		return -1;
    1.13  	}
    1.14