gallium: fix glBitmap surface memleak in context tear-down
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user