Change-Id: I6fea3d23d30396a96bdc0f55ffeca122455da1bb
{
// 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
EcoreWlRenderSurface::~EcoreWlRenderSurface()
{
+ if( mOwnSurface )
+ {
+ ecore_wl_shutdown();
+ }
}
void EcoreWlRenderSurface::SetRenderNotification(TriggerEventInterface* renderNotification)