summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_texture.c
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2008-12-18 19:56:45 +0100
committerJosé Fonseca <jfonseca@vmware.com>2008-12-22 18:56:20 +0000
commit5f36c5b2c59bb8be53d3712b3896b448ef086c74 (patch)
tree24bb15482612c63e5b558d3a6d34ae0f758161bf /src/gallium/drivers/softpipe/sp_texture.c
parent85bc49a6f17fb3909c3d5e7200114c3bb58c9019 (diff)
softpipe: initialize refcount and winsys
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_texture.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 84a497c351..0cb4b2f03c 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -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);