apple: Set the glapi dispatch table on context bind

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston 2011-06-14 00:45:12 -07:00
parent c17fb8539f
commit a128355ecb
4 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@
struct _glapi_table * __ogl_framework_api = NULL;
struct _glapi_table * __applegl_api = NULL;
void apple_xgl_init_direct(void) {
void apple_glapi_set_dispatch(void) {
static void *handle;
const char *opengl_framework_path;

View File

@ -131,7 +131,6 @@ apple_init_glx(Display * dpy)
}
apple_cgl_init();
apple_xgl_init_direct();
(void) apple_glx_get_client_id();
XAppleDRISetSurfaceNotifyHandler(surface_notify_handler);

View File

@ -45,6 +45,6 @@ void apple_glx_swap_buffers(void *ptr);
void apple_glx_waitx(Display * dpy, void *ptr);
int apple_get_dri_event_base(void);
void apple_xgl_init_direct(void);
void apple_glapi_set_dispatch(void);
#endif

View File

@ -59,6 +59,8 @@ applegl_bind_context(struct glx_context *gc, struct glx_context *old,
if (error)
return 1; /* GLXBadContext is the same as Success (0) */
apple_glapi_set_dispatch();
return Success;
}