[PATCH 4/5] rpi: EGL surfaces need to be swapped always that we have an incoming back buffer

Tomeu Vizoso tomeu at tomeuvizoso.net
Thu Oct 24 15:38:32 CEST 2013


---
 src/rpi-renderer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c
index 2db619c..6478838 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -1255,7 +1255,8 @@ rpi_renderer_repaint_output(struct weston_output *base,
 		if (!wv->surface->touched) {
 			wv->surface->touched = 1;
 
-			if (view->surface->need_swap)
+			if (view->surface->buffer_type == BUFFER_TYPE_EGL ||
+			    view->surface->need_swap)
 				rpir_surface_swap_pointers(view->surface);
 		}
 
-- 
1.8.3.1



More information about the wayland-devel mailing list