Merge "Fixed SVACE error in gles-context.cpp" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 9 Jun 2021 11:21:17 +0000 (11:21 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 9 Jun 2021 11:21:17 +0000 (11:21 +0000)
dali/internal/graphics/gles-impl/gles-context.cpp

index 31e0713..077d2c6 100644 (file)
@@ -246,7 +246,7 @@ void Context::Flush(bool reset, const GLES::DrawCallDescriptor& drawCall)
   }
 
   // for each attribute bind vertices
-  const auto& pipelineState = mImpl->mNewPipeline->GetCreateInfo();
+  const auto& pipelineState = mImpl->mNewPipeline ? mImpl->mNewPipeline->GetCreateInfo() : mImpl->mCurrentPipeline->GetCreateInfo();
   const auto& vi            = pipelineState.vertexInputState;
   for(const auto& attr : vi->attributes)
   {