mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glx: Implement glx_screen_vtable::create_context_attribs for indirect contexts
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
43409fa7b0
commit
6a0640971f
1 changed files with 23 additions and 1 deletions
|
|
@ -436,9 +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,
|
||||
NULL
|
||||
indirect_create_context_attribs
|
||||
};
|
||||
|
||||
_X_HIDDEN struct glx_screen *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue