From: José Fonseca Date: Mon, 22 Dec 2008 20:23:59 +0000 (+0000) Subject: softpipe: Don't fill surfaces's winsys fields. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=417a78bdad11976f89e7bb12e3de0138995a2b1f;p=mesa.git softpipe: Don't fill surfaces's winsys fields. This is sometimes checked to distinguish between texture views and (deprecated) standalone surfaces. --- diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index fbe73e69152..a64dc89f432 100644 --- a/src/gallium/drivers/softpipe/sp_texture.c +++ b/src/gallium/drivers/softpipe/sp_texture.c @@ -239,10 +239,8 @@ softpipe_get_tex_surface(struct pipe_screen *screen, ps = CALLOC_STRUCT(pipe_surface); ps->refcount = 1; - ps->winsys = ws; if (ps) { assert(ps->refcount); - assert(ps->winsys); pipe_texture_reference(&ps->texture, pt); pipe_buffer_reference(screen, &ps->buffer, spt->buffer); ps->format = pt->format;