mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
unmap regions when reallocating renderbuffer storage
This commit is contained in:
parent
fd3876e9e3
commit
a1633c0716
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
|
|||
|
||||
/* free old region */
|
||||
if (strb->surface->region) {
|
||||
/* loop here since mapping is refcounted */
|
||||
struct pipe_region *r = strb->surface->region;
|
||||
while (r->map)
|
||||
pipe->region_unmap(pipe, r);
|
||||
pipe->region_release(pipe, &strb->surface->region);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue