Call MakeContextCurrent in PreRender 33/253333/2
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 9 Feb 2021 02:46:18 +0000 (11:46 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Thu, 18 Feb 2021 05:17:19 +0000 (05:17 +0000)
When creating multiple NativeRenderSurface,
Dali didn't render from second RenderSurface.

Change-Id: I536e831bfbd6d2e5a2a1cb7e31ec5a505c91ca22

dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp

index ad926ae..3d9e316 100644 (file)
@@ -241,6 +241,7 @@ void NativeRenderSurfaceEcoreWl::StartRender()
 bool NativeRenderSurfaceEcoreWl::PreRender(bool resizingSurface, const std::vector<Rect<int>>& damagedRects, Rect<int>& clippingRect)
 {
   //TODO: Need to support partial update
+  MakeContextCurrent();
   return true;
 }