From: Heeyong Song Date: Fri, 22 May 2020 06:48:44 +0000 (+0900) Subject: Fix DestroyContext bug X-Git-Tag: dali_1.5.14~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af124e872a4be6b40f6c6fa998adfd35559be33d;p=platform%2Fcore%2Fuifw%2Fdali-adaptor-legacy.git Fix DestroyContext bug Change-Id: I46d2806e48c6e4d3d7c97d94832e5ffa5147cb87 --- diff --git a/dali/internal/graphics/gles/egl-implementation.cpp b/dali/internal/graphics/gles/egl-implementation.cpp index c653ab6..38851f9 100755 --- a/dali/internal/graphics/gles/egl-implementation.cpp +++ b/dali/internal/graphics/gles/egl-implementation.cpp @@ -195,10 +195,11 @@ bool EglImplementation::CreateWindowContext( EGLContext& eglContext ) void EglImplementation::DestroyContext( EGLContext& eglContext ) { - DALI_ASSERT_ALWAYS( mEglContext && "no EGL context" ); - - eglDestroyContext( mEglDisplay, eglContext ); - eglContext = 0; + if( eglContext ) + { + eglDestroyContext( mEglDisplay, eglContext ); + eglContext = 0; + } } void EglImplementation::DestroySurface( EGLSurface& eglSurface )