Merge "Call SetClearEnabled() for clearing background" into devel/master
authorsunghyun kim <scholb.kim@samsung.com>
Wed, 27 May 2020 00:51:32 +0000 (00:51 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 27 May 2020 00:51:32 +0000 (00:51 +0000)
dali/internal/event/common/scene-impl.cpp

index 2cc2cdc..d7b80d6 100644 (file)
@@ -133,8 +133,9 @@ void Scene::Initialize( Size size )
   // Create the list of render-tasks
   mRenderTaskList = RenderTaskList::New();
 
-  // Create the default render-task
-  mRenderTaskList->CreateTask( mRootLayer.Get(), mDefaultCamera.Get() );
+  // Create the default render-task and ensure clear is enabled on it to show the background color
+  RenderTaskPtr renderTask = mRenderTaskList->CreateTask( mRootLayer.Get(), mDefaultCamera.Get() );
+  renderTask->SetClearEnabled(true);
 
   SurfaceResized( size.width, size.height );