do eglMakeCurrent before eglDestroySurface()
Change-Id: Iff8abcca5bcc5ec56e4ce3f34afcd6092ee41c9e
{
if(mIsOwnSurface && mCurrentEglSurface)
{
+ // Make context null to prevent crash in driver side
+ MakeContextNull();
eglDestroySurface( mEglDisplay, mCurrentEglSurface );
mCurrentEglSurface = 0;
}
{
if ( mGlesInitialized )
{
- // in latest Mali DDK (r2p3 ~ r3p0 in April, 2012),
- // MakeContextNull should be called before eglDestroy surface
- // to prevent crash in _mali_surface_destroy_callback
+ // Make context null to prevent crash in driver side
MakeContextNull();
if(mIsOwnSurface && mCurrentEglSurface)