From: Jakob Bornecrantz Date: Fri, 30 May 2008 16:46:40 +0000 (+0200) Subject: i915: Fixed initialization of surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4364cd1a6f9e825ea183c1fa6d1050b7e113695;p=mesa.git i915: Fixed initialization of surface --- diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c index f0d00280c23..16354dce509 100644 --- a/src/gallium/drivers/i915simple/i915_texture.c +++ b/src/gallium/drivers/i915simple/i915_texture.c @@ -624,8 +624,8 @@ i915_get_tex_surface(struct pipe_screen *screen, ps = CALLOC_STRUCT(pipe_surface);//ws->surface_alloc(ws); if (ps) { - assert(ps->refcount); - assert(ps->winsys); + ps->refcount = 1; + ps->winsys = ws; pipe_texture_reference(&ps->texture, pt); pipe_buffer_reference(ws, &ps->buffer, tex->buffer); ps->format = pt->format;