mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 06:40:27 +01:00
gallium: fix glBitmap surface memleak in context tear-down
This commit is contained in:
parent
b256273689
commit
b4219e35e2
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue