mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error
This commit is contained in:
parent
500e3af175
commit
e23a7b2ea4
1 changed files with 1 additions and 1 deletions
|
|
@ -882,7 +882,7 @@ softpipe_get_tex_surface(struct pipe_context *pipe,
|
|||
if (ps) {
|
||||
assert(ps->format);
|
||||
assert(ps->refcount);
|
||||
ps->region = mt->region;
|
||||
pipe_region_reference(&ps->region, mt->region);
|
||||
ps->width = mt->level[level].width;
|
||||
ps->height = mt->level[level].height;
|
||||
ps->offset = offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue