mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Explicitly set EGL_PLATFORM=wayland for wayland winsys
The EGL API doesn't provide for a way to explicitly select a platform when the driver can support multiple. Mesa allows selection using an EGL_PLATFORM environment variable though so we set that to "wayland" when we know that's what we want.
This commit is contained in:
parent
a54aa40dbe
commit
653d59af04
@ -363,6 +363,12 @@ _cogl_winsys_renderer_connect (CoglRenderer *renderer,
|
||||
|
||||
#elif defined (COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
|
||||
|
||||
/* The EGL API doesn't provide for a way to explicitly select a
|
||||
* platform when the driver can support multiple. Mesa allows
|
||||
* selection using an environment variable though so that's what
|
||||
* we're doing here... */
|
||||
setenv("EGL_PLATFORM", "wayland", 1);
|
||||
|
||||
if (renderer->foreign_wayland_display)
|
||||
{
|
||||
egl_renderer->wayland_display = renderer->foreign_wayland_display;
|
||||
|
Loading…
Reference in New Issue
Block a user