From: Seungho, Baek Date: Tue, 14 Jul 2020 09:52:20 +0000 (+0900) Subject: Revert "[Tizen] remove setenv() that can cause Seg fault" X-Git-Tag: accepted/tizen/unified/20200715.002037~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c233992c9b529d75cfdabd05025871fee2c599b1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor-legacy.git Revert "[Tizen] remove setenv() that can cause Seg fault" This reverts commit 83f74c1be37401972d2ce39690c5066c977b06a6. --- diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 1d845aa..58f9c85 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -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 ); } 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 066fac6..6c5b8da 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 @@ -150,6 +150,7 @@ int NativeRenderSurfaceEcoreWl::GetOrientation() const void NativeRenderSurfaceEcoreWl::InitializeGraphics() { DALI_LOG_TRACE_METHOD( gNativeSurfaceLogFilter ); + unsetenv( "EGL_PLATFORM" ); mGraphics = &mAdaptor->GetGraphicsInterface(); auto eglGraphics = static_cast(mGraphics);