st/mesa: don't allocate bitmap drawing state until needed
authorBrian Paul <brianp@vmware.com>
Mon, 8 Feb 2016 16:59:40 +0000 (09:59 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Feb 2016 18:27:48 +0000 (11:27 -0700)
commit7d18faf8e7509a575f39b0a409b8167db7561153
tree1713633190ec8657a32f11e0a4017da867396a0a
parenta5799de3dc8ddf0e90c2e64438664df3ce84f5ae
st/mesa: don't allocate bitmap drawing state until needed

Most apps don't use glBitmap so don't allocate the bitmap cache or
gallium state objects/shaders/etc until the first call to st_Bitmap().

v2: simplify a conditional, per Gustaw Smolarczyk.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_bitmap.h
src/mesa/state_tracker/st_context.c