[PATCH 3/5] rpi: Fix logging of buffer swaps for the EGL case

Tomeu Vizoso tomeu at tomeuvizoso.net
Thu Oct 24 15:38:31 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 0b99a60..2db619c 100644
--- a/src/rpi-renderer.c
+++ b/src/rpi-renderer.c
@@ -969,13 +969,14 @@ rpir_surface_swap_pointers(struct rpir_surface *surface)
 			surface->egl_old_front = surface->egl_front;
 			surface->egl_front = surface->egl_back;
 			surface->egl_back = NULL;
+			DBG("new front %d\n", surface->egl_front->resource_handle);
 		}
 	} else {
 		tmp = surface->front;
 		surface->front = surface->back;
 		surface->back = tmp;
+		DBG("new back %p, new front %p\n", surface->back, surface->front);
 	}
-	DBG("new back %p, new front %p\n", surface->back, surface->front);
 }
 
 static int
-- 
1.8.3.1



More information about the wayland-devel mailing list