SDL: Fix usage of sizeof() in test/testgles*.c files (4d605)

From 4d605ae0029ff362b7fb84f3cbbb186c8bddeda3 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 17 Nov 2022 14:55:49 +0100
Subject: [PATCH] Fix usage of sizeof() in test/testgles*.c files

(cherry-picked from commit 71f2864b3a24e144eaf4ae6e86eee0dd5e9f89b1)
---
 test/testgles.c      | 2 +-
 test/testgles2.c     | 2 +-
 test/testgles2_sdf.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/testgles.c b/test/testgles.c
index cb989f44f45d..745cf8919e91 100644
--- a/test/testgles.c
+++ b/test/testgles.c
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
         quit(2);
     }
 
-    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
+    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
     if (context == NULL) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
         quit(2);
diff --git a/test/testgles2.c b/test/testgles2.c
index b5c0ec8838bd..0b5b642d9f1d 100644
--- a/test/testgles2.c
+++ b/test/testgles2.c
@@ -612,7 +612,7 @@ main(int argc, char *argv[])
         return 0;
     }
 
-    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
+    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
     if (context == NULL) {
         SDL_Log("Out of memory!\n");
         quit(2);
diff --git a/test/testgles2_sdf.c b/test/testgles2_sdf.c
index 064b6bc2ce45..e9e79d6e62fc 100644
--- a/test/testgles2_sdf.c
+++ b/test/testgles2_sdf.c
@@ -522,7 +522,7 @@ main(int argc, char *argv[])
         return 0;
     }
 
-    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(context));
+    context = (SDL_GLContext *)SDL_calloc(state->num_windows, sizeof(*context));
     if (context == NULL) {
         SDL_Log("Out of memory!\n");
         quit(2);