mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
mesa: add pointer to cso_context to gl_context
Makes migrating code easier Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133>
This commit is contained in:
parent
22607020f5
commit
8232cf1b4d
2 changed files with 2 additions and 1 deletions
|
|
@ -5576,7 +5576,7 @@ struct gl_context
|
|||
struct st_context *st;
|
||||
struct pipe_context *pipe;
|
||||
struct st_config_options *st_opts;
|
||||
|
||||
struct cso_context *cso_context;
|
||||
/*@}*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -578,6 +578,7 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
|||
}
|
||||
|
||||
st->cso_context = cso_create_context(pipe, cso_flags);
|
||||
ctx->cso_context = st->cso_context;
|
||||
|
||||
st_init_atoms(st);
|
||||
st_init_clear(st);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue