src/SDL_compat.c
changeset 2328 91e601d9df8b
parent 2322 c25d45b7add3
child 2371 3eb72191bb7e
child 2698 e1da92da346c
child 2710 44e49d3fa6cf
     1.1 --- a/src/SDL_compat.c	Fri Mar 07 23:57:15 2008 +0000
     1.2 +++ b/src/SDL_compat.c	Fri Mar 14 18:17:49 2008 +0000
     1.3 @@ -29,15 +29,14 @@
     1.4  #include "video/SDL_sysvideo.h"
     1.5  #include "video/SDL_pixels_c.h"
     1.6  
     1.7 -
     1.8 -static SDL_WindowID SDL_VideoWindow;
     1.9 +static SDL_WindowID SDL_VideoWindow = 0;
    1.10  static SDL_RendererInfo SDL_VideoRendererInfo;
    1.11 -static SDL_TextureID SDL_VideoTexture;
    1.12 -static SDL_Surface *SDL_VideoSurface;
    1.13 -static SDL_Surface *SDL_ShadowSurface;
    1.14 -static SDL_Surface *SDL_PublicSurface;
    1.15 -static SDL_GLContext *SDL_VideoContext;
    1.16 -static char *wm_title;
    1.17 +static SDL_TextureID SDL_VideoTexture = 0;
    1.18 +static SDL_Surface *SDL_VideoSurface = NULL;
    1.19 +static SDL_Surface *SDL_ShadowSurface = NULL;
    1.20 +static SDL_Surface *SDL_PublicSurface = NULL;
    1.21 +static SDL_GLContext *SDL_VideoContext = NULL;
    1.22 +static char *wm_title = NULL;
    1.23  
    1.24  char *
    1.25  SDL_AudioDriverName(char *namebuf, int maxlen)
    1.26 @@ -391,7 +390,7 @@
    1.27          SDL_VideoSurface = NULL;
    1.28      }
    1.29      if (SDL_VideoContext) {
    1.30 -        SDL_GL_MakeCurrent(0, NULL);
    1.31 +        /* SDL_GL_MakeCurrent(0, NULL); *//* Doesn't do anything */
    1.32          SDL_GL_DeleteContext(SDL_VideoContext);
    1.33          SDL_VideoContext = NULL;
    1.34      }