mesa: add a pointer to st_config_options to gl_context
Allows porting out of st 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
f6c608dd24
commit
22607020f5
|
@ -5575,6 +5575,8 @@ struct gl_context
|
|||
struct vbo_context vbo_context;
|
||||
struct st_context *st;
|
||||
struct pipe_context *pipe;
|
||||
struct st_config_options *st_opts;
|
||||
|
||||
/*@}*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -546,6 +546,7 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
|
|||
|
||||
st->options = *options;
|
||||
|
||||
ctx->st_opts = &st->options;
|
||||
ctx->st = st;
|
||||
|
||||
st->ctx = ctx;
|
||||
|
|
Loading…
Reference in New Issue