src/SDL_compat.c
changeset 2328 91e601d9df8b
parent 2322 c25d45b7add3
child 2371 3eb72191bb7e
child 2698 e1da92da346c
child 2710 44e49d3fa6cf
--- a/src/SDL_compat.c	Fri Mar 07 23:57:15 2008 +0000
+++ b/src/SDL_compat.c	Fri Mar 14 18:17:49 2008 +0000
@@ -29,15 +29,14 @@
 #include "video/SDL_sysvideo.h"
 #include "video/SDL_pixels_c.h"
 
-
-static SDL_WindowID SDL_VideoWindow;
+static SDL_WindowID SDL_VideoWindow = 0;
 static SDL_RendererInfo SDL_VideoRendererInfo;
-static SDL_TextureID SDL_VideoTexture;
-static SDL_Surface *SDL_VideoSurface;
-static SDL_Surface *SDL_ShadowSurface;
-static SDL_Surface *SDL_PublicSurface;
-static SDL_GLContext *SDL_VideoContext;
-static char *wm_title;
+static SDL_TextureID SDL_VideoTexture = 0;
+static SDL_Surface *SDL_VideoSurface = NULL;
+static SDL_Surface *SDL_ShadowSurface = NULL;
+static SDL_Surface *SDL_PublicSurface = NULL;
+static SDL_GLContext *SDL_VideoContext = NULL;
+static char *wm_title = NULL;
 
 char *
 SDL_AudioDriverName(char *namebuf, int maxlen)
@@ -391,7 +390,7 @@
         SDL_VideoSurface = NULL;
     }
     if (SDL_VideoContext) {
-        SDL_GL_MakeCurrent(0, NULL);
+        /* SDL_GL_MakeCurrent(0, NULL); *//* Doesn't do anything */
         SDL_GL_DeleteContext(SDL_VideoContext);
         SDL_VideoContext = NULL;
     }