softpipe: initialize refcount and winsys

This commit is contained in:
Jerome Glisse
2008-12-18 19:56:45 +01:00
committed by José Fonseca
parent 85bc49a6f1
commit 5f36c5b2c5

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