summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-12-22 20:23:59 +0000
committerJosé Fonseca <[email protected]>2008-12-22 20:23:59 +0000
commit417a78bdad11976f89e7bb12e3de0138995a2b1f (patch)
tree3377791efb251087b8cca44c0a420c802949077b
parentfc16ba8553e239acf68c6ea5f9729c4f02b2ffc4 (diff)
softpipe: Don't fill surfaces's winsys fields.
This is sometimes checked to distinguish between texture views and (deprecated) standalone surfaces.
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c2
1 files changed, 0 insertions, 2 deletions
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;