diff options
author | Brian Paul <[email protected]> | 2008-08-14 15:38:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-14 15:44:28 -0600 |
commit | 8f6d9e12be0be086ca2aab0b56dff8d2181addd9 (patch) | |
tree | 5f9b28a792eed3a01d00d1577617c97c40095bfd /src/mesa/state_tracker/st_context.c | |
parent | 6c46b49d12b33b04546bee137f75ca7649e9a4ef (diff) |
gallium: use a default texture in update_textures(), update_samplers() when needed
The default texture is used when the current fragment shader has texture
sample instructions but the user has not provided/bound a texture.
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 6e4a376d44a..d014ace59fb 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -199,6 +199,11 @@ static void st_destroy_context_priv( struct st_context *st ) } } + if (st->default_texture) { + st->ctx->Driver.DeleteTexture(st->ctx, st->default_texture); + st->default_texture = NULL; + } + free( st ); } |