diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 46bcf2eaa..445b0ca6a 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -812,7 +812,7 @@ void SDL_FreeSurface (SDL_Surface *surface) SDL_FreeBlitMap(surface->map); surface->map = NULL; } - if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) { + if ( surface->hwdata ) { SDL_VideoDevice *video = current_video; SDL_VideoDevice *this = current_video; video->FreeHWSurface(this, surface);