diff options
author | Marek Olšák <[email protected]> | 2012-10-08 02:27:35 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-11 21:12:03 +0200 |
commit | ce7ebdd29af8b7ee34250c8f52db5f32e7ffddf9 (patch) | |
tree | f998cb325b4f7b5282ea175c8003bc4f6ff47e38 /src/mesa | |
parent | f04a6a65cc2a3986c80e3770566ee9ae713148ac (diff) |
st/mesa: remove useless checking in reset_cache
It's always NULL here.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 62e57123512..e4d6c4a85bf 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -555,7 +555,6 @@ draw_bitmap_quad(struct gl_context *ctx, GLint x, GLint y, GLfloat z, static void reset_cache(struct st_context *st) { - struct pipe_context *pipe = st->pipe; struct bitmap_cache *cache = st->bitmap.cache; /*memset(cache->buffer, 0xff, sizeof(cache->buffer));*/ @@ -566,11 +565,6 @@ reset_cache(struct st_context *st) cache->ymin = 1000000; cache->ymax = -1000000; - if (cache->trans) { - pipe->transfer_destroy(pipe, cache->trans); - cache->trans = NULL; - } - assert(!cache->texture); /* allocate a new texture */ |