1.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c Thu Dec 29 11:49:18 2016 -0500
1.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c Sun Jan 01 19:10:36 2017 -0800
1.3 @@ -133,7 +133,6 @@
1.4 SDL_DFB_DEBUG("Loaded library: %s\n", path);
1.5
1.6 _this->gl_config.dll_handle = handle;
1.7 - _this->gl_config.driver_loaded = 1;
1.8 if (path) {
1.9 SDL_strlcpy(_this->gl_config.driver_path, path,
1.10 SDL_arraysize(_this->gl_config.driver_path));
1.11 @@ -151,16 +150,10 @@
1.12 DirectFB_GL_UnloadLibrary(_THIS)
1.13 {
1.14 #if 0
1.15 - int ret;
1.16 -
1.17 - if (_this->gl_config.driver_loaded) {
1.18 -
1.19 - ret = GL_UnloadObject(_this->gl_config.dll_handle);
1.20 - if (ret)
1.21 - SDL_DFB_ERR("Error #%d trying to unload library.\n", ret);
1.22 - _this->gl_config.dll_handle = NULL;
1.23 - _this->gl_config.driver_loaded = 0;
1.24 - }
1.25 + int ret = GL_UnloadObject(_this->gl_config.dll_handle);
1.26 + if (ret)
1.27 + SDL_DFB_ERR("Error #%d trying to unload library.\n", ret);
1.28 + _this->gl_config.dll_handle = NULL;
1.29 #endif
1.30 /* Free OpenGL memory */
1.31 SDL_free(_this->gl_data);