Explicitly set EGL_PLATFORM when using wayland 44/4344/1 accepted/tizen/20130627.212329 submit/tizen/20130627.212436
authorRusty Lynch <rusty.lynch@intel.com>
Thu, 27 Jun 2013 21:23:21 +0000 (14:23 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Thu, 27 Jun 2013 21:24:10 +0000 (14:24 -0700)
Change-Id: Ib706600f802386234ad7e682b37571bfad65089b

packaging/wrt.changes
src/wrt-client/wrt-client.cpp

index d30f18a..f5bed3d 100644 (file)
@@ -1,3 +1,6 @@
+* Thu Jun 27 2013 Rusty Lynch <rusty.lynch@intel.com> submit/tizen/20130624.231020@fa32cb2
+- Explicitly set EGL_PLATFORM when using wayland
+
 * Mon Jun 24 2013 Rusty Lynch <rusty.lynch@intel.com> accepted/tizen/20130611.152517@f49a645
 - Add build config support for X11
 - Add build config for decrypt support
index 6c2619a..b18835a 100644 (file)
@@ -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");