comparison src/video/x11/SDL_x11gl.c @ 3905:0e0883cb7137 SDL-1.2

Add error message if not using SDL_LoadObject
author Patrice Mandin <patmandin@gmail.com>
date Sun, 14 Jan 2007 14:24:36 +0000
parents 9d940db55a91
children cb04355ffec4
comparison
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);