Commit 65c55fdd8474f3bf46cb714b0692d50caa021ebe

Sam Lantinga 2017-09-08T04:38:46

Fixed build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/test/SDL_test_font.c b/src/test/SDL_test_font.c
index 21c6220..0be27f6 100644
--- a/src/test/SDL_test_font.c
+++ b/src/test/SDL_test_font.c
@@ -3239,9 +3239,9 @@ int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s)
 void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer)
 {
     int i;
-    for (i = 0; i < SDL_ARRAYSIZE(SDLTest_CharTextureCache); ++i) {
+    for (i = 0; i < SDL_arraysize(SDLTest_CharTextureCache); ++i) {
         if (SDLTest_CharTextureCache[i]) {
-            SDL_TextureDestroy(SDLTest_CharTextureCache[i]);
+            SDL_DestroyTexture(SDLTest_CharTextureCache[i]);
             SDLTest_CharTextureCache[i] = NULL;
         }
     }