summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2008-12-18 19:56:45 +0100
committerJerome Glisse <[email protected]>2008-12-18 19:56:45 +0100
commit26b5e92c302e0a83e08aa2100b23c10919a97f4a (patch)
treee9f99fc932554b77b488554de578881bce97f368 /src
parentb7c05044ed3cb1a225004e94a5a1416c61d20d60 (diff)
softpipe: initialize refcount and winsys
Diffstat (limited to 'src')
-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 84a497c3516..0cb4b2f03c3 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);