Change-Id: Icca5f00b10a431c7dfec97a3ffb34e9900b41c5e
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
DoRender( instruction );
}
DoRender( instruction );
}
-
- if ( mImpl->currentContext->IsSurfacelessContextSupported() )
- {
- mImpl->glContextHelperAbstraction.MakeSurfacelessContextCurrent();
- }
-
- GLenum attachments[] = { GL_DEPTH, GL_STENCIL };
- mImpl->context.InvalidateFramebuffer(GL_FRAMEBUFFER, 2, attachments);
- for ( auto&& context : mImpl->surfaceContextContainer )
- {
- context->InvalidateFramebuffer(GL_FRAMEBUFFER, 2, attachments);
- }
}
//Notify RenderGeometries that rendering has finished
}
//Notify RenderGeometries that rendering has finished
{
mImpl->currentContext->Flush();
}
{
mImpl->currentContext->Flush();
}
+
+ if( instruction.mFrameBuffer && instruction.mFrameBuffer->IsSurfaceBacked() )
+ {
+ GLenum attachments[] = { GL_DEPTH, GL_STENCIL };
+ mImpl->context.InvalidateFramebuffer(GL_FRAMEBUFFER, 2, attachments);
+ }
}
} // namespace SceneGraph
}
} // namespace SceneGraph