Skip to content

Commit

Permalink
offscreen: Avoid using EGLDeviceEXT as it causes issues with older pl…
Browse files Browse the repository at this point in the history
…atforms, which is just a void*
  • Loading branch information
BrandonSchaefer committed Sep 24, 2019
1 parent 6898537 commit 8a41948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/video/SDL_egl.c
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_egl_c.h
Expand Up @@ -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;
Expand Down

0 comments on commit 8a41948

Please sign in to comment.