wayland: fix segfault when using software rendering
authorPhilipp Brüschweiler <blei42@gmail.com>
Fri, 8 Mar 2013 20:32:36 +0000 (21:32 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Mar 2013 12:50:23 +0000 (06:50 -0600)
wayland_roundtrip() was given an incorrect parameter.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=62362

Note: This is a candidate for the stable branches.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/egl/wayland/native_shm.c

index a9592377ab5e1573dc2c885e8248031254a893b5..2499677f6c945ad2319c6fef9d36b258ae21e095 100644 (file)
@@ -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;