{
delete mRotationTrigger;
}
+
+ if ( mEGLSurface )
+ {
+ DestroySurface();
+ }
}
void WindowRenderSurface::Initialize( Any surface )
{
mRenderNotification->Trigger();
}
+
+ if ( eglImpl.IsSurfacelessContextSupported() )
+ {
+ // Switch to the shared context after rendering this surface
+ eglImpl.MakeContextCurrent( EGL_NO_SURFACE, eglImpl.GetContext() );
+ }
}
}