Skip to content

Commit

Permalink
eglGetProcAddress fails the same way on MIR as ANDROID does on arm. T…
Browse files Browse the repository at this point in the history
…hanks Sylvain Becker for the patch!
  • Loading branch information
BrandonSchaefer committed May 6, 2014
1 parent e7bccd1 commit b614809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/SDL_egl.c
Expand Up @@ -77,7 +77,7 @@ SDL_EGL_GetProcAddress(_THIS, const char *proc)
void *retval;

/* 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) {
retval = _this->egl_data->eglGetProcAddress(proc);
if (retval) {
Expand Down
3 changes: 2 additions & 1 deletion src/video/mir/SDL_mirwindow.c
Expand Up @@ -84,7 +84,8 @@ MIR_CreateWindow(_THIS, SDL_Window* window)
.width = window->w,
.height = window->h,
.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 = {
Expand Down

0 comments on commit b614809

Please sign in to comment.