Invalidate depth and stencil buffers after finishing the rendering
[platform/core/uifw/dali-adaptor.git] / dali / internal / graphics / gles / egl-graphics.cpp
index 3f00195..62563e1 100644 (file)
@@ -93,6 +93,16 @@ void EglGraphics::ActivateSurfaceContext(Dali::RenderSurfaceInterface* surface)
   mGraphicsController.ActivateSurfaceContext(surface);
 }
 
+void EglGraphics::PostRender()
+{
+  ActivateResourceContext();
+
+  if(mGraphicsController.GetCurrentContext())
+  {
+    mGraphicsController.GetCurrentContext()->InvalidateDepthStencilBuffers();
+  }
+}
+
 void EglGraphics::SetFirstFrameAfterResume()
 {
   if(mEglImplementation)