Commit 2aa8525ecbccc7ef9ab66d426da86b1c03306141

Sam Lantinga 2023-06-10T09:29:09

Fixed build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 00de546..dbd4740 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2765,7 +2765,7 @@ int SDL_DestroyWindowSurface(SDL_Window *window)
 
     if (window->surface) {
         window->surface->flags &= ~SDL_DONTFREE;
-        SDL_DestroySurface(window->surface);
+        SDL_FreeSurface(window->surface);
         window->surface = NULL;
         window->surface_valid = SDL_FALSE;
     }