[Tizen] remove setenv() that can cause Seg fault 16/237316/1 accepted/tizen/unified/20200710.114111 submit/tizen/20200709.045949
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 29 Jun 2020 05:51:12 +0000 (14:51 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 29 Jun 2020 05:51:12 +0000 (14:51 +0900)
setenv(), unsetenv() are not thread-safe.

Change-Id: I399c2b4e0ecb0c4eb99e6791dd06a1af7c4f7999

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

index 58f9c85..1d845aa 100755 (executable)
@@ -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 6c5b8da..066fac6 100644 (file)
@@ -150,7 +150,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);