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 <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2011-09-26 16:05:52 +08:00
parent df07020560
commit 1fb58860cc

View File

@ -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;
}