# HG changeset patch # User Patrice Mandin # Date 1136741359 0 # Node ID cbdb2c156acac13e52ae99e03a6cb9358a1e592e # Parent 1901fea5edac3693dd7468b05921055699fb6d68 Rollback diff -r 1901fea5edac -r cbdb2c156aca src/video/ataricommon/SDL_atarigl.c --- a/src/video/ataricommon/SDL_atarigl.c Sun Jan 08 10:22:27 2006 +0000 +++ b/src/video/ataricommon/SDL_atarigl.c Sun Jan 08 17:29:19 2006 +0000 @@ -134,21 +134,11 @@ return -1; } - /* Driver already loaded ? */ - if (this->gl_config.driver_loaded) { - /* Default path ? don't change anything */ - if (path==NULL) { - return 0; - } - /* Unload previous driver */ - SDL_AtariGL_UnloadLibrary(this); - } + /* Unload previous driver */ + SDL_AtariGL_UnloadLibrary(this); /* Load library given by path */ - handle = NULL - if (path != NULL) { - handle = SDL_LoadObject(path); - } + handle = SDL_LoadObject(path); if (handle == NULL) { /* Try to load another one */ path = getenv("SDL_VIDEO_GL_DRIVER"); @@ -408,7 +398,6 @@ if (this->gl_config.dll_handle) { SDL_UnloadObject(this->gl_config.dll_handle); this->gl_config.dll_handle = NULL; - this->gl_config.driver_loaded = 0; /* Restore pointers to static library */ SDL_AtariGL_InitPointers(this); diff -r 1901fea5edac -r cbdb2c156aca src/video/gem/SDL_gemvideo.c --- a/src/video/gem/SDL_gemvideo.c Sun Jan 08 10:22:27 2006 +0000 +++ b/src/video/gem/SDL_gemvideo.c Sun Jan 08 17:29:19 2006 +0000 @@ -468,7 +468,6 @@ #ifdef HAVE_OPENGL SDL_AtariGL_InitPointers(this); - SDL_AtariGL_LoadLibrary(this, NULL); #endif /* We're done! */ diff -r 1901fea5edac -r cbdb2c156aca src/video/xbios/SDL_xbios.c --- a/src/video/xbios/SDL_xbios.c Sun Jan 08 10:22:27 2006 +0000 +++ b/src/video/xbios/SDL_xbios.c Sun Jan 08 17:29:19 2006 +0000 @@ -464,7 +464,6 @@ #ifdef HAVE_OPENGL SDL_AtariGL_InitPointers(this); - SDL_AtariGL_LoadLibrary(this, NULL); #endif /* We're done! */