From c8962892e01f481555cd81441cac499cb1378c79 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 8 Jul 2022 10:40:50 +0100 Subject: [PATCH] Fixing SVACE error Change-Id: Idd73fdbc59aa0b4fdfccd6e16af5dd7adb3d3584 --- dali/internal/graphics/gles-impl/egl-graphics-controller.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dali/internal/graphics/gles-impl/egl-graphics-controller.cpp b/dali/internal/graphics/gles-impl/egl-graphics-controller.cpp index d7b8d33..2456deb 100644 --- a/dali/internal/graphics/gles-impl/egl-graphics-controller.cpp +++ b/dali/internal/graphics/gles-impl/egl-graphics-controller.cpp @@ -316,7 +316,10 @@ void EglGraphicsController::ActivateResourceContext() if(!mSharedContext) { auto eglGraphics = dynamic_cast(mGraphics); - mSharedContext = eglGraphics->GetEglImplementation().GetContext(); + if(eglGraphics) + { + mSharedContext = eglGraphics->GetEglImplementation().GetContext(); + } } } -- 2.7.4