[Tizen] fixed crash issues 75/147675/2 submit/tizen_4.0/20170908.010823 submit/tizen_4.0/20170908.025741
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 5 Sep 2017 08:27:54 +0000 (17:27 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 6 Sep 2017 01:25:50 +0000 (01:25 +0000)
do eglMakeCurrent before eglDestroySurface()

Change-Id: Iff8abcca5bcc5ec56e4ce3f34afcd6092ee41c9e

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;
   }