[Tizen] fixed crash issues
[platform/core/uifw/dali-adaptor.git] / adaptors / common / gl / egl-implementation.cpp
index dd2a59e..b458c2c 100644 (file)
@@ -155,6 +155,7 @@ void EglImplementation::DestroySurface()
 {
   if(mIsOwnSurface && mCurrentEglSurface)
   {
+    MakeContextNull();
     eglDestroySurface( mEglDisplay, mCurrentEglSurface );
     mCurrentEglSurface = 0;
   }