From edebdf8d998f88fb0c62fb972b8ebac2319b672d Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Thu, 27 Jun 2013 14:23:21 -0700 Subject: [PATCH] Explicitly set EGL_PLATFORM when using wayland Change-Id: Ib706600f802386234ad7e682b37571bfad65089b --- packaging/wrt.changes | 3 +++ src/wrt-client/wrt-client.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/packaging/wrt.changes b/packaging/wrt.changes index d30f18a..f5bed3d 100644 --- a/packaging/wrt.changes +++ b/packaging/wrt.changes @@ -1,3 +1,6 @@ +* Thu Jun 27 2013 Rusty Lynch submit/tizen/20130624.231020@fa32cb2 +- Explicitly set EGL_PLATFORM when using wayland + * Mon Jun 24 2013 Rusty Lynch accepted/tizen/20130611.152517@f49a645 - Add build config support for X11 - Add build config for decrypt support diff --git a/src/wrt-client/wrt-client.cpp b/src/wrt-client/wrt-client.cpp index 6c2619a..b18835a 100644 --- a/src/wrt-client/wrt-client.cpp +++ b/src/wrt-client/wrt-client.cpp @@ -855,6 +855,13 @@ int main(int argc, app_argc = argc; app_argv = argv; +#ifndef X11 + // Mesa does a bad job detecting the correct EGL + // platform to use, and ends up assuming that the + // wrt-client is using X + setenv("EGL_PLATFORM", "wayland", 1); +#endif + UNHANDLED_EXCEPTION_HANDLER_BEGIN { ADD_PROFILING_POINT("main-entered", "point"); -- 2.7.4