st/mesa: make st_init_extensions context-independent
authorMarek Olšák <marek.olsak@amd.com>
Sun, 3 Aug 2014 02:20:31 +0000 (04:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 11 Aug 2014 19:53:57 +0000 (21:53 +0200)
commit5c69173907e72a0978af5028db336f051ce733b0
treefd1ef8abba86226fef5d877aa496694c795bd866
parentd9a6f4360a617fccfb3987f9ec276012a9a14b75
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 <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_extensions.h