src/video/x11/SDL_x11gl.c
branchSDL-1.2
changeset 3905 0e0883cb7137
parent 1880 9d940db55a91
child 3940 cb04355ffec4
equal deleted inserted replaced
3904:d8371d2dc524 3905:0e0883cb7137
   477 		}
   477 		}
   478 	}
   478 	}
   479 
   479 
   480 	handle = GL_LoadObject(path);
   480 	handle = GL_LoadObject(path);
   481 	if ( handle == NULL ) {
   481 	if ( handle == NULL ) {
       
   482 #if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN)
       
   483 		SDL_SetError("Failed loading %s", path);
       
   484 #else
   482 		/* SDL_LoadObject() will call SDL_SetError() for us. */
   485 		/* SDL_LoadObject() will call SDL_SetError() for us. */
       
   486 #endif
   483 		return -1;
   487 		return -1;
   484 	}
   488 	}
   485 
   489 
   486 	/* Unload the old driver and reset the pointers */
   490 	/* Unload the old driver and reset the pointers */
   487 	X11_GL_UnloadLibrary(this);
   491 	X11_GL_UnloadLibrary(this);