diff options
author | Brian Paul <[email protected]> | 2016-02-08 09:59:40 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-02-09 11:27:48 -0700 |
commit | 7d18faf8e7509a575f39b0a409b8167db7561153 (patch) | |
tree | 1713633190ec8657a32f11e0a4017da867396a0a /src/mesa/state_tracker/st_context.c | |
parent | a5799de3dc8ddf0e90c2e64438664df3ce84f5ae (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 446ebfb563f..9016846b148 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -231,7 +231,6 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe, st->cso_context = cso_create_context(pipe); st_init_atoms( st ); - st_init_bitmap(st); st_init_clear(st); st_init_draw( st ); st_init_pbo_upload(st); |