mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02: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) {
|
if (ps) {
|
||||||
assert(ps->format);
|
assert(ps->format);
|
||||||
assert(ps->refcount);
|
assert(ps->refcount);
|
||||||
ps->region = mt->region;
|
pipe_region_reference(&ps->region, mt->region);
|
||||||
ps->width = mt->level[level].width;
|
ps->width = mt->level[level].width;
|
||||||
ps->height = mt->level[level].height;
|
ps->height = mt->level[level].height;
|
||||||
ps->offset = offset;
|
ps->offset = offset;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue