mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 14:35:40 +00:00
eglGetProcAddress fails the same way on MIR as ANDROID does on arm. Thanks Sylvain Becker for the patch!
This commit is contained in:
parent
e7bccd1640
commit
b614809203
|
@ -77,7 +77,7 @@ SDL_EGL_GetProcAddress(_THIS, const char *proc)
|
||||||
void *retval;
|
void *retval;
|
||||||
|
|
||||||
/* eglGetProcAddress is busted on Android http://code.google.com/p/android/issues/detail?id=7681 */
|
/* eglGetProcAddress is busted on Android http://code.google.com/p/android/issues/detail?id=7681 */
|
||||||
#if !defined(SDL_VIDEO_DRIVER_ANDROID)
|
#if !defined(SDL_VIDEO_DRIVER_ANDROID) && !defined(SDL_VIDEO_DRIVER_MIR)
|
||||||
if (_this->egl_data->eglGetProcAddress) {
|
if (_this->egl_data->eglGetProcAddress) {
|
||||||
retval = _this->egl_data->eglGetProcAddress(proc);
|
retval = _this->egl_data->eglGetProcAddress(proc);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
|
|
|
@ -84,7 +84,8 @@ MIR_CreateWindow(_THIS, SDL_Window* window)
|
||||||
.width = window->w,
|
.width = window->w,
|
||||||
.height = window->h,
|
.height = window->h,
|
||||||
.pixel_format = mir_pixel_format_invalid,
|
.pixel_format = mir_pixel_format_invalid,
|
||||||
.buffer_usage = mir_buffer_usage_hardware
|
.buffer_usage = mir_buffer_usage_hardware,
|
||||||
|
.output_id = mir_display_output_id_invalid
|
||||||
};
|
};
|
||||||
|
|
||||||
MirEventDelegate delegate = {
|
MirEventDelegate delegate = {
|
||||||
|
|
Loading…
Reference in a new issue