diff options
author | Marek Olšák <[email protected]> | 2014-08-03 04:20:31 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-11 21:53:57 +0200 |
commit | 5c69173907e72a0978af5028db336f051ce733b0 (patch) | |
tree | fd1ef8abba86226fef5d877aa496694c795bd866 /src/mesa/state_tracker/st_extensions.h | |
parent | d9a6f4360a617fccfb3987f9ec276012a9a14b75 (diff) |
st/mesa: make st_init_extensions context-independent
Setting Const.MaxSamples needed a rework, so that it doesn't call
st_choose_format, which depends on st_context.
Other than that, there is no change in functionality.
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.h')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.h b/src/mesa/state_tracker/st_extensions.h index d098ed07415..aa24632577b 100644 --- a/src/mesa/state_tracker/st_extensions.h +++ b/src/mesa/state_tracker/st_extensions.h @@ -31,10 +31,16 @@ struct st_context; +struct pipe_screen; extern void st_init_limits(struct st_context *st); -extern void st_init_extensions(struct st_context *st); +extern void st_init_extensions(struct pipe_screen *screen, + gl_api api, + struct gl_constants *consts, + struct gl_extensions *extensions, + struct st_config_options *options, + boolean has_lib_dxtc); #endif /* ST_EXTENSIONS_H */ |