r300g: don't use pipe_context::winsys
authorMarek Olšák <maraeo@gmail.com>
Fri, 17 Feb 2012 00:26:21 +0000 (01:26 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 17 Feb 2012 00:26:56 +0000 (01:26 +0100)
src/gallium/drivers/r300/r300_transfer.c

index 10ff2b0..ada094b 100644 (file)
@@ -258,7 +258,7 @@ void* r300_texture_transfer_map(struct pipe_context *ctx,
 void r300_texture_transfer_unmap(struct pipe_context *ctx,
                                 struct pipe_transfer *transfer)
 {
-    struct radeon_winsys *rws = (struct radeon_winsys *)ctx->winsys;
+    struct radeon_winsys *rws = r300_context(ctx)->rws;
     struct r300_transfer *r300transfer = r300_transfer(transfer);
     struct r300_resource *tex = r300_resource(transfer->resource);