offscreen: Avoid using EGLDeviceEXT as it causes issues with older platforms, which is just a void*
This commit is contained in:
parent
937d0c8ded
commit
86b7a6bd72
2 changed files with 3 additions and 3 deletions
|
@ -502,7 +502,7 @@ SDL_EGL_LoadLibrary(_THIS, const char *egl_path, NativeDisplayType native_displa
|
||||||
int
|
int
|
||||||
SDL_EGL_InitializeOffscreen(_THIS, int device)
|
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;
|
EGLint num_egl_devices = 0;
|
||||||
const char *egl_device_hint;
|
const char *egl_device_hint;
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ typedef struct SDL_EGL_VideoData
|
||||||
EGLint(EGLAPIENTRY *eglGetError)(void);
|
EGLint(EGLAPIENTRY *eglGetError)(void);
|
||||||
|
|
||||||
EGLBoolean(EGLAPIENTRY *eglQueryDevicesEXT)(EGLint max_devices,
|
EGLBoolean(EGLAPIENTRY *eglQueryDevicesEXT)(EGLint max_devices,
|
||||||
EGLDeviceEXT* devices,
|
void **devices,
|
||||||
EGLint *num_devices);
|
EGLint *num_devices);
|
||||||
|
|
||||||
/* whether EGL display was offscreen */
|
/* whether EGL display was offscreen */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue