diff options
author | Adam Jackson <ajax@redhat.com> | 2021-03-18 11:36:12 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2021-03-19 11:13:07 -0400 |
commit | 621b3a40417429b7ea740735dc69453bbc18ad9f (patch) | |
tree | eba053b7241cde58973156cfb0bb746fbca844f9 /src/glx/glxclient.h | |
parent | cba1d6de221e33b4a00b88c6a9ddcd1b332ffba6 (diff) |
glx: Pull get_proc_address out of the context vtable
One, only applegl needs this. Two, this isn't a function of the context
in any way so it doesn't belong in the context vtable. Just special-case
applegl for now, we can revisit applegl's dispatch later.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9690>
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r-- | src/glx/glxclient.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index ecda3e58537..178b4cb9820 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -231,7 +231,6 @@ struct glx_context_vtable { GLXDrawable drawable, int buffer, const int *attrib_list); void (*release_tex_image)(Display * dpy, GLXDrawable drawable, int buffer); - void * (*get_proc_address)(const char *symbol); int (*interop_query_device_info)(struct glx_context *ctx, struct mesa_glinterop_device_info *out); int (*interop_export_object)(struct glx_context *ctx, @@ -807,6 +806,9 @@ applegl_create_context(struct glx_screen *psc, extern int applegl_create_display(struct glx_display *display); + +extern void * +applegl_get_proc_address(const char *symbol); #endif extern Bool validate_renderType_against_config(const struct glx_config *config, |