浏览代码

wayland: Explicitly specify EGL platform

Frank Praznik 3 月之前
父节点
当前提交
fea9b348c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/wayland/SDL_waylandopengles.c

+ 1 - 1
src/video/wayland/SDL_waylandopengles.c

@@ -40,7 +40,7 @@ int Wayland_GLES_LoadLibrary(_THIS, const char *path)
     int ret;
     int ret;
     SDL_VideoData *data = (SDL_VideoData *)_this->driverdata;
     SDL_VideoData *data = (SDL_VideoData *)_this->driverdata;
 
 
-    ret = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) data->display, 0);
+    ret = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) data->display, EGL_PLATFORM_WAYLAND_KHR);
 
 
     Wayland_PumpEvents(_this);
     Wayland_PumpEvents(_this);
     WAYLAND_wl_display_flush(data->display);
     WAYLAND_wl_display_flush(data->display);