[Tizen] remove setenv() that can cause Seg fault
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 21 Jul 2020 06:15:05 +0000 (15:15 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 21 Jul 2020 06:18:32 +0000 (15:18 +0900)
This reverts commit d961ed565bce65adc7f0570cccc2d5fc2ce791fc.

Change-Id: I4e8c0e758a91e855011b50dcc4d23576b8a33016

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

index 12008ab..b43c376 100644 (file)
@@ -389,7 +389,6 @@ 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 9eda5e8..5b955d3 100644 (file)
@@ -160,7 +160,6 @@ 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);