mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
softpipe: initialize refcount and winsys
This commit is contained in:
parent
b7c05044ed
commit
26b5e92c30
1 changed files with 2 additions and 0 deletions
|
|
@ -219,6 +219,8 @@ softpipe_get_tex_surface(struct pipe_screen *screen,
|
|||
assert(level <= pt->last_level);
|
||||
|
||||
ps = CALLOC_STRUCT(pipe_surface);
|
||||
ps->refcount = 1;
|
||||
ps->winsys = ws;
|
||||
if (ps) {
|
||||
assert(ps->refcount);
|
||||
assert(ps->winsys);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue