From: Daekwang Ryu Date: Tue, 21 Jul 2020 06:15:05 +0000 (+0900) Subject: [Tizen] remove setenv() that can cause Seg fault X-Git-Tag: accepted/tizen/unified/20200722.014914~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a13107d8f850037fc650081d39bf2687067371ef;hp=72395a9162b5c8295a6eae39b8be892ced6d4912;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] remove setenv() that can cause Seg fault This reverts commit d961ed565bce65adc7f0570cccc2d5fc2ce791fc. Change-Id: I4e8c0e758a91e855011b50dcc4d23576b8a33016 --- diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 12008ab..b43c376 100644 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -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 ); } diff --git a/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp b/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp index 9eda5e8..5b955d3 100644 --- a/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp +++ b/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp @@ -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(mGraphics);