+
+ mIsRenderingWindows = true;
+
+ // Upload shared resources
+ mCore.PreRender( renderStatus, mForceClear, mUploadWithoutRendering );
+
+ if ( !mUploadWithoutRendering )
+ {
+ // Go through each window
+ WindowContainer windows;
+ mAdaptorInterfaces.GetWindowContainerInterface( windows );
+
+ for( auto&& window : windows )
+ {
+ if ( window && !window->IsBeingDeleted() )
+ {
+ Dali::Integration::Scene scene = window->GetScene();
+ Dali::RenderSurfaceInterface* windowSurface = window->GetSurface();
+
+ if ( scene && windowSurface )
+ {
+ windowSurface->InitializeGraphics();
+
+ // Render off-screen frame buffers first if any
+ mCore.RenderScene( scene, true );
+
+ // Switch to the EGL context of the surface
+ windowSurface->PreRender( surfaceResized ); // Switch GL context
+
+ // Render the surface
+ mCore.RenderScene( scene, false );
+
+ windowSurface->PostRender( false, false, surfaceResized ); // Swap Buffer
+ }
+ }
+ }
+ }
+
+ mCore.PostRender( mUploadWithoutRendering );
+
+ mIsRenderingWindows = false;
+