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:
parent
df07020560
commit
1fb58860cc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user