diff src/video/windows/SDL_windowsopengl.c @ 5092:327f181542f1

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
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 21:20:30 -0800
parents e8916fe9cfc8
children b530ef003506
line wrap: on
line diff
--- a/src/video/windows/SDL_windowsopengl.c	Mon Jan 24 17:47:18 2011 -0800
+++ b/src/video/windows/SDL_windowsopengl.c	Mon Jan 24 21:20:30 2011 -0800
@@ -101,7 +101,7 @@
         !_this->gl_data->wglDeleteContext ||
         !_this->gl_data->wglMakeCurrent) {
         SDL_SetError("Could not retrieve OpenGL functions");
-        FreeLibrary(handle);
+        SDL_UnloadObject(handle);
         return -1;
     }