From 8a41948e7fa8707ca197001d32b55985ec98e096 Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Tue, 24 Sep 2019 17:27:51 -0400 Subject: [PATCH] offscreen: Avoid using EGLDeviceEXT as it causes issues with older platforms, which is just a void* --- src/video/SDL_egl.c | 2 +- src/video/SDL_egl_c.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index ee7c60df0f67c..f0858f3a19c9a 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -502,7 +502,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa int SDL_EGL_InitializeOffscreen(_THIS, int device) { - EGLDeviceEXT egl_devices[SDL_EGL_MAX_DEVICES]; + void *egl_devices[SDL_EGL_MAX_DEVICES]; EGLint num_egl_devices = 0; const char *egl_device_hint; diff --git a/src/video/SDL_egl_c.h b/src/video/SDL_egl_c.h index b34592c667fb1..38277f7d4a150 100644 --- a/src/video/SDL_egl_c.h +++ b/src/video/SDL_egl_c.h @@ -98,8 +98,8 @@ typedef struct SDL_EGL_VideoData EGLint(EGLAPIENTRY *eglGetError)(void); EGLBoolean(EGLAPIENTRY *eglQueryDevicesEXT)(EGLint max_devices, - EGLDeviceEXT* devices, - EGLint* num_devices); + void **devices, + EGLint *num_devices); /* whether EGL display was offscreen */ int is_offscreen;