[PATCH] ephyr: Fix GLX_VISUAL_ID to be a visual ID instead of an Xlib visual pointer

Keith Packard keithp at keithp.com
Mon Mar 17 23:55:10 PDT 2014


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

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 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



More information about the xorg-devel mailing list