summaryrefslogtreecommitdiff
path: root/src/video/windows/SDL_windowsopengl.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-01-24 21:20:30 -0800
committerSam Lantinga <slouken@libsdl.org>2011-01-24 21:20:30 -0800
commitb4497865bd7b7c9c03ff47865458ab0d4ff711c3 (patch)
tree43a1ba5f8fac0008d9bc921f189661911edc63da /src/video/windows/SDL_windowsopengl.c
parent1775cf40fd4f8861421af69c872d83321e40b8ce (diff)
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c --HG-- rename : src/SDL_android.cpp => src/core/android/SDL_android.cpp rename : src/SDL_android.h => src/core/android/SDL_android.h
Diffstat (limited to 'src/video/windows/SDL_windowsopengl.c')
-rw-r--r--src/video/windows/SDL_windowsopengl.c2
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;
}