|
|
@@ -32,22 +32,22 @@
|
|
|
|
|
|
#include "xdg-shell-client-protocol.h"
|
|
|
|
|
|
+#ifndef EGL_PLATFORM_WAYLAND_KHR
|
|
|
+#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
|
|
|
+#endif
|
|
|
+
|
|
|
// EGL implementation of SDL OpenGL ES support
|
|
|
|
|
|
void Wayland_GLES_SetDefaultProfileConfig(SDL_VideoDevice *_this)
|
|
|
{
|
|
|
-#if defined(SDL_PLATFORM_QNXNTO)
|
|
|
- // QNX defaults to EGL_PLATFORM_SCREEN_QNX unless this is explicitly specified
|
|
|
- _this->gl_config.egl_platform = EGL_PLATFORM_WAYLAND_EXT;
|
|
|
-#endif
|
|
|
+ _this->gl_config.egl_platform = EGL_PLATFORM_WAYLAND_KHR;
|
|
|
}
|
|
|
|
|
|
bool Wayland_GLES_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
|
|
{
|
|
|
- bool result;
|
|
|
SDL_VideoData *data = _this->internal;
|
|
|
|
|
|
- result = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType)data->display);
|
|
|
+ const bool result = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType)data->display);
|
|
|
|
|
|
Wayland_PumpEvents(_this);
|
|
|
WAYLAND_wl_display_flush(data->display);
|