DefaultVisual returns a Visual *, not a visual ID. Fetch the visual id
from inside the resulting structure.

Signed-off-by: Keith Packard <[email protected]>
---
 hw/kdrive/ephyr/ephyr_glamor_glx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/kdrive/ephyr/ephyr_glamor_glx.c 
b/hw/kdrive/ephyr/ephyr_glamor_glx.c
index 9903cc7..0f04a5f 100644
--- a/hw/kdrive/ephyr/ephyr_glamor_glx.c
+++ b/hw/kdrive/ephyr/ephyr_glamor_glx.c
@@ -313,7 +313,7 @@ ephyr_glamor_get_visual(void)
         GLX_GREEN_SIZE, 1,
         GLX_BLUE_SIZE, 1,
         GLX_DOUBLEBUFFER, 1,
-        GLX_VISUAL_ID, DefaultVisual(dpy, DefaultScreen(dpy)),
+        GLX_VISUAL_ID, DefaultVisual(dpy, DefaultScreen(dpy))->visualid,
         None
     };
     int event_base = 0, error_base = 0, nelements;
-- 
1.9.0

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to