gallium: fix glBitmap surface memleak in context tear-down

This commit is contained in:
Brian Paul
2008-05-16 16:11:00 -06:00
parent b256273689
commit b4219e35e2

View File

@@ -747,6 +747,11 @@ void
st_destroy_bitmap(struct st_context *st)
{
struct pipe_context *pipe = st->pipe;
struct pipe_screen *screen = pipe->screen;
struct bitmap_cache *cache = st->bitmap.cache;
screen->surface_unmap(screen, cache->surf);
screen->tex_surface_release(screen, &cache->surf);
#if 0
if (st->bitmap.combined_prog) {