softpipe: initialize refcount and winsys
This commit is contained in:

committed by
José Fonseca

parent
85bc49a6f1
commit
5f36c5b2c5
@@ -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);
|
||||
|
Reference in New Issue
Block a user