Revert "[Tizen] remove setenv() that can cause Seg fault"
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 27 Jul 2020 06:18:12 +0000 (15:18 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 27 Jul 2020 06:18:16 +0000 (15:18 +0900)
This reverts commit a13107d8f850037fc650081d39bf2687067371ef.

Change-Id: I961c4fed06a2875340db25d50e304bb4a908f334

dali/internal/adaptor/common/adaptor-impl.cpp
dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp

index b43c376..12008ab 100644 (file)
@@ -389,6 +389,7 @@ void Adaptor::Start()
   else
   {
     unsigned int maxTextureSize = mConfigurationManager->GetMaxTextureSize();
+    setenv( DALI_ENV_MAX_TEXTURE_SIZE, std::to_string( maxTextureSize ).c_str(), 1 );
     Dali::TizenPlatform::ImageLoader::SetMaxTextureSize( maxTextureSize );
   }
 
index 5b955d3..9eda5e8 100644 (file)
@@ -160,6 +160,7 @@ int NativeRenderSurfaceEcoreWl::GetOrientation() const
 void NativeRenderSurfaceEcoreWl::InitializeGraphics()
 {
   DALI_LOG_TRACE_METHOD( gNativeSurfaceLogFilter );
+  unsetenv( "EGL_PLATFORM" );
 
   mGraphics = &mAdaptor->GetGraphicsInterface();
   auto eglGraphics = static_cast<Internal::Adaptor::EglGraphics *>(mGraphics);