[Mesa-dev] [PATCH] wayland: fix segfault when using software rendering

Philipp Brüschweiler blei42 at gmail.com
Fri Mar 8 12:32:36 PST 2013


wayland_roundtrip() was given an incorrect parameter.
---
 src/gallium/state_trackers/egl/wayland/native_shm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/egl/wayland/native_shm.c b/src/gallium/state_trackers/egl/wayland/native_shm.c
index a959237..2499677 100644
--- a/src/gallium/state_trackers/egl/wayland/native_shm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_shm.c
@@ -163,7 +163,7 @@ wayland_shm_display_init_screen(struct native_display *ndpy)
       return FALSE;
 
    if (shmdpy->base.formats == 0)
-      wayland_roundtrip(shmdpy->base.dpy);
+      wayland_roundtrip(&shmdpy->base);
    if (shmdpy->base.formats == 0)
       return FALSE;
 
-- 
1.8.1.5



More information about the mesa-dev mailing list