Skip to content

Commit

Permalink
Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jan 8, 2006
1 parent e4ee54b commit 821fcee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
17 changes: 3 additions & 14 deletions src/video/ataricommon/SDL_atarigl.c
Expand Up @@ -134,21 +134,11 @@ int SDL_AtariGL_LoadLibrary(_THIS, const char *path)
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");
Expand Down Expand Up @@ -408,7 +398,6 @@ static void SDL_AtariGL_UnloadLibrary(_THIS)
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);
Expand Down
1 change: 0 additions & 1 deletion src/video/gem/SDL_gemvideo.c
Expand Up @@ -468,7 +468,6 @@ int GEM_VideoInit(_THIS, SDL_PixelFormat *vformat)

#ifdef HAVE_OPENGL
SDL_AtariGL_InitPointers(this);
SDL_AtariGL_LoadLibrary(this, NULL);
#endif

/* We're done! */
Expand Down
1 change: 0 additions & 1 deletion src/video/xbios/SDL_xbios.c
Expand Up @@ -464,7 +464,6 @@ static int XBIOS_VideoInit(_THIS, SDL_PixelFormat *vformat)

#ifdef HAVE_OPENGL
SDL_AtariGL_InitPointers(this);
SDL_AtariGL_LoadLibrary(this, NULL);
#endif

/* We're done! */
Expand Down

0 comments on commit 821fcee

Please sign in to comment.