mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
gallium: Make sure to release texture surfaces (at the right time).
This commit is contained in:
parent
650c57f193
commit
d0279fc4b3
2 changed files with 4 additions and 1 deletions
|
|
@ -1038,12 +1038,13 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
|
|||
}
|
||||
}
|
||||
|
||||
pipe_surface_reference(&psTex, NULL);
|
||||
|
||||
/* draw textured quad */
|
||||
draw_textured_quad(ctx, dstx, dsty, ctx->Current.RasterPos[2],
|
||||
width, height, ctx->Pixel.ZoomX, ctx->Pixel.ZoomY,
|
||||
pt, stvp, stfp, color, GL_TRUE);
|
||||
|
||||
pipe_surface_reference(&psTex, NULL);
|
||||
pipe_texture_reference(&pt, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1095,6 +1095,8 @@ fallback_copy_texsubimage(GLcontext *ctx,
|
|||
pipe_put_tile_rgba(pipe, dest_surf, destX, destY, width, 1, data);
|
||||
}
|
||||
}
|
||||
|
||||
screen->tex_surface_release(screen, &dest_surf);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue