softpipe: Don't fill surfaces's winsys fields.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 22 Dec 2008 20:23:59 +0000 (20:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 22 Dec 2008 20:23:59 +0000 (20:23 +0000)
This is sometimes checked to distinguish between texture views and
(deprecated) standalone surfaces.

src/gallium/drivers/softpipe/sp_texture.c

index fbe73e6..a64dc89 100644 (file)
@@ -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;