diff options
Diffstat (limited to 'src/video/windows/SDL_windowsopengl.c')
-rw-r--r-- | src/video/windows/SDL_windowsopengl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/windows/SDL_windowsopengl.c b/src/video/windows/SDL_windowsopengl.c index 0de7414b..950c35a4 100644 --- a/src/video/windows/SDL_windowsopengl.c +++ b/src/video/windows/SDL_windowsopengl.c @@ -101,7 +101,7 @@ WIN_GL_LoadLibrary(_THIS, const char *path) !_this->gl_data->wglDeleteContext || !_this->gl_data->wglMakeCurrent) { SDL_SetError("Could not retrieve OpenGL functions"); - FreeLibrary(handle); + SDL_UnloadObject(handle); return -1; } |