src/video/SDL_egl.c
changeset 11418 7749a3b2b343
parent 11363 2d3d35b2c95a
child 11462 dc5698982bac
     1.1 --- a/src/video/SDL_egl.c	Tue Aug 29 16:05:03 2017 -0400
     1.2 +++ b/src/video/SDL_egl.c	Tue Aug 29 16:30:49 2017 -0400
     1.3 @@ -380,12 +380,12 @@
     1.4  #if !defined(__WINRT__)
     1.5      if (platform) {
     1.6          if (egl_version_major == 1 && egl_version_minor == 5) {
     1.7 -            _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, (void *)native_display, NULL);
     1.8 +            _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplay(platform, (void *)(size_t)native_display, NULL);
     1.9          } else {
    1.10              if (SDL_EGL_HasExtension(_this, SDL_EGL_CLIENT_EXTENSION, "EGL_EXT_platform_base")) {
    1.11                  _this->egl_data->eglGetPlatformDisplayEXT = SDL_EGL_GetProcAddress(_this, "eglGetPlatformDisplayEXT");
    1.12                  if (_this->egl_data->eglGetPlatformDisplayEXT) {
    1.13 -                    _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, (void *)native_display, NULL);
    1.14 +                    _this->egl_data->egl_display = _this->egl_data->eglGetPlatformDisplayEXT(platform, (void *)(size_t)native_display, NULL);
    1.15                  }
    1.16              }
    1.17          }