X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglx%2Findirect_glx.c;h=2399375a9bc2569bda92aa0bff7cea23502576b7;hb=6574fe3c4a9e36791cde88dfd73429ba4faf3215;hp=17689d45f2304801eab5ddc5ac788902b2b71646;hpb=4dbd13cb3f5aeff6ddc85fd091b4677369c19778;p=mesa.git diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index 17689d45f23..2399375a9bc 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -436,8 +436,31 @@ indirect_create_context(struct glx_screen *psc, return gc; } +static struct glx_context * +indirect_create_context_attribs(struct glx_screen *base, + struct glx_config *config_base, + struct glx_context *shareList, + unsigned num_attribs, + const uint32_t *attribs, + unsigned *error) +{ + /* All of the attribute validation for indirect contexts is handled on the + * server, so there's not much to do here. + */ + (void) num_attribs; + (void) attribs; + + /* The error parameter is only used on the server so that correct GLX + * protocol errors can be generated. On the client, it can be ignored. + */ + (void) error; + + return indirect_create_context(base, config_base, shareList, 0); +} + struct glx_screen_vtable indirect_screen_vtable = { - indirect_create_context + indirect_create_context, + indirect_create_context_attribs }; _X_HIDDEN struct glx_screen *