Fixed SVACE error in gles-context.cpp 80/259480/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jun 2021 17:35:45 +0000 (18:35 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jun 2021 17:35:45 +0000 (18:35 +0100)
Change-Id: I79d63e791dc00b2e9898d43c8396e09378c0bdbb

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)
   {