softpipe: initialize refcount and winsys

This commit is contained in:
Jerome Glisse 2008-12-18 19:56:45 +01:00
parent b7c05044ed
commit 26b5e92c30

View file

@ -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);