Remove unnecessary setenv() calls 27/236927/3
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 23 Jun 2020 08:44:42 +0000 (17:44 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Wed, 22 Jul 2020 08:18:29 +0000 (17:18 +0900)
Change-Id: I9dbadd0ccefcc9995e3e31b401385b8cbd1ee0aa

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 d5b5869..7ade18f 100644 (file)
@@ -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<Internal::Adaptor::EglGraphics *>(mGraphics);