Mercurial > sdl-ios-xcode
diff src/video/SDL_sysvideo.h @ 3695:f6a8be3fefa0
Added magic to detect already freed or otherwise invalid windows and textures.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 24 Jan 2010 20:21:51 +0000 |
parents | 64ce267332c6 |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h Sun Jan 24 19:47:17 2010 +0000 +++ b/src/video/SDL_sysvideo.h Sun Jan 24 20:21:51 2010 +0000 @@ -37,6 +37,7 @@ /* Define the SDL texture structure */ struct SDL_Texture { + const void *magic; Uint32 format; /**< The pixel format of the texture */ int access; /**< SDL_TextureAccess */ int w; /**< The width of the texture */ @@ -138,6 +139,7 @@ /* Define the SDL window structure, corresponding to toplevel windows */ struct SDL_Window { + const void *magic; Uint32 id; char *title; int x, y; @@ -308,6 +310,8 @@ int num_displays; SDL_VideoDisplay *displays; int current_display; + Uint8 window_magic; + Uint8 texture_magic; Uint32 next_object_id; /* * * */