{
// Tell surface we have stopped rendering
mSurface->StopRender();
-
- // The surface will be destroyed soon; this pointer will become invalid
- mSurface = NULL;
}
}
{
// give a chance to destroy the OpenGL surface that created externally
mSurface->DestroyEglSurface( *mEGL );
+
+ mSurface = NULL;
}
// delete the GL context / egl surface