From 1fb58860cc02d28545c66a916956a45918596870 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 26 Sep 2011 16:05:52 +0800 Subject: [PATCH] ephyr-glamor: Implment gl disptach function for host glx. We should pass back the glXGetProcAddress to the underlying gl dispatch initialization function to get those gl function pointers. Signed-off-by: Zhigang Gong --- hw/kdrive/ephyr/hostx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 15dfc70ae..935c7c667 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -1532,3 +1532,15 @@ ephyr_glamor_paint_rect (EphyrScreenInfo screen, host_screen->win_width, host_screen->win_height); #endif } + +struct glamor_gl_dispatch; +extern Bool +glamor_gl_dispatch_init_impl(struct glamor_gl_dispatch *dispatch, int gl_version, void* func); + +Bool +glamor_gl_dispatch_init(void *screen, struct glamor_gl_dispatch *dispatch, int gl_version) +{ + if (!glamor_gl_dispatch_init_impl(dispatch, gl_version, glXGetProcAddress)) + return FALSE; + return TRUE; +}