diff src/video/SDL_surface.c @ 1666:6e7ec5cb83c3 SDL-1.3

The dummy video driver compiles. :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 21:56:07 +0000
parents 782fd950bd46
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/SDL_surface.c	Sun May 28 18:18:30 2006 +0000
+++ b/src/video/SDL_surface.c	Sun May 28 21:56:07 2006 +0000
@@ -896,12 +896,7 @@
 void
 SDL_FreeSurface (SDL_Surface * surface)
 {
-    SDL_VideoDevice *_this = SDL_GetVideoDevice ();
-
-    /* Free anything that's not NULL, and not the screen surface */
-    if ((surface == NULL) ||
-        (_this &&
-         ((surface == SDL_ShadowSurface) || (surface == SDL_VideoSurface)))) {
+    if (surface == NULL) {
         return;
     }
     if (--surface->refcount > 0) {