From 4d2a4b01e5d2adccab92b7369b2df66b424a7d1b Mon Sep 17 00:00:00 2001 From: Daekwang Ryu Date: Tue, 23 Jun 2020 17:44:42 +0900 Subject: [PATCH] Remove unnecessary setenv() calls Change-Id: I9dbadd0ccefcc9995e3e31b401385b8cbd1ee0aa --- dali/internal/adaptor/common/adaptor-impl.cpp | 1 - .../window-system/tizen-wayland/native-render-surface-ecore-wl.cpp | 3 --- 2 files changed, 4 deletions(-) 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 d5b5869..7ade18f 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 @@ -80,8 +80,6 @@ NativeRenderSurfaceEcoreWl::NativeRenderSurfaceEcoreWl( SurfaceSize surfaceSize, DALI_ASSERT_ALWAYS( ( surface.GetType() == typeid (tbm_surface_queue_h) ) && "Surface type is invalid" ); mTbmQueue = AnyCast< tbm_surface_queue_h >( surface ); } - - setenv( "EGL_PLATFORM", "tbm", 1 ); } NativeRenderSurfaceEcoreWl::~NativeRenderSurfaceEcoreWl() @@ -155,7 +153,6 @@ void NativeRenderSurfaceEcoreWl::GetDpi( unsigned int& dpiHorizontal, unsigned i void NativeRenderSurfaceEcoreWl::InitializeGraphics() { DALI_LOG_TRACE_METHOD( gNativeSurfaceLogFilter ); - unsetenv( "EGL_PLATFORM" ); mGraphics = &mAdaptor->GetGraphicsInterface(); auto eglGraphics = static_cast(mGraphics); -- 2.7.4