[3.0] Set EGL_PLATFORM env. for native render surface 63/90763/4
authortaeyoon <taeyoon0.lee@samsung.com>
Tue, 4 Oct 2016 07:28:56 +0000 (16:28 +0900)
committerTaeyoon Lee <taeyoon0.lee@samsung.com>
Fri, 7 Oct 2016 01:31:20 +0000 (18:31 -0700)
  for support two display in ddk

Change-Id: I48c2c6c4decb8906e203a5bf5c85c9dfeb00521e

adaptors/tizen/native-render-surface-tizen.cpp

index 7f1b1a7..a205f2e 100644 (file)
@@ -74,6 +74,7 @@ NativeRenderSurface::NativeRenderSurface(Dali::PositionSize positionSize,
 {
   ecore_wl_init(NULL);
   CreateNativeRenderable();
+  setenv( "EGL_PLATFORM", "tbm", 1 );
 }
 
 NativeRenderSurface::~NativeRenderSurface()
@@ -119,6 +120,7 @@ Any NativeRenderSurface::GetSurface()
 void NativeRenderSurface::InitializeEgl( EglInterface& egl )
 {
   DALI_LOG_TRACE_METHOD( gRenderSurfaceLogFilter );
+  unsetenv( "EGL_PLATFORM" );
 
   Internal::Adaptor::EglImplementation& eglImpl = static_cast<Internal::Adaptor::EglImplementation&>( egl );