SDL: egl: Group data fields before function pointers in SDL_EGL_VideoData.

From 0aff42a159d54c959c36b99ded84efac489b80d8 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 23 Sep 2021 00:02:44 -0400
Subject: [PATCH] egl: Group data fields before function pointers in
 SDL_EGL_VideoData.

---
 src/video/SDL_egl_c.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/video/SDL_egl_c.h b/src/video/SDL_egl_c.h
index 8dd0bdb08d..abe0998944 100644
--- a/src/video/SDL_egl_c.h
+++ b/src/video/SDL_egl_c.h
@@ -40,6 +40,8 @@ typedef struct SDL_EGL_VideoData
     int egl_surfacetype;
     int egl_version_major, egl_version_minor;
     EGLint egl_required_visual_id;
+    SDL_bool is_offscreen;  /* whether EGL display was offscreen */
+    EGLenum apitype;  /* EGL_OPENGL_ES_API, EGL_OPENGL_API, etc */
     
     EGLDisplay(EGLAPIENTRY *eglGetDisplay) (NativeDisplayType display);
     EGLDisplay(EGLAPIENTRY *eglGetPlatformDisplay) (EGLenum platform,
@@ -114,9 +116,6 @@ typedef struct SDL_EGL_VideoData
     EGLint(EGLAPIENTRY *eglClientWaitSyncKHR)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
 
     /* Atomic functions end */
-
-    SDL_bool is_offscreen;  /* whether EGL display was offscreen */
-    EGLenum apitype;  /* EGL_OPENGL_ES_API, EGL_OPENGL_API, etc */
 } SDL_EGL_VideoData;
 
 /* OpenGLES functions */