Mesa (gallium-0.1): softpipe: initialize refcount and winsys

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Dec 22 19:19:49 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 5f36c5b2c59bb8be53d3712b3896b448ef086c74
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f36c5b2c59bb8be53d3712b3896b448ef086c74

Author: Jerome Glisse <glisse at freedesktop.org>
Date:   Thu Dec 18 19:56:45 2008 +0100

softpipe: initialize refcount and winsys

---

 src/gallium/drivers/softpipe/sp_texture.c |    2 ++
 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 84a497c..0cb4b2f 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);




More information about the mesa-commit mailing list