summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_draw.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-04 02:47:35 +0200
committerMarek Olšák <[email protected]>2010-06-04 03:04:16 +0200
commitffd0a2e215d83222f5e1e148b8e7cddeac6025d2 (patch)
tree0e5da8e7cd9dac23a052f21fb0e04f3071b9da52 /src/gallium/drivers/r600/r600_draw.c
parent42aad574f2536d8bf0dc38a2e02d9ddd0630d895 (diff)
r600g: use cast wrappers
Diffstat (limited to 'src/gallium/drivers/r600/r600_draw.c')
-rw-r--r--src/gallium/drivers/r600/r600_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_draw.c b/src/gallium/drivers/r600/r600_draw.c
index 8b6a6d96aa8..724fb6c988e 100644
--- a/src/gallium/drivers/r600/r600_draw.c
+++ b/src/gallium/drivers/r600/r600_draw.c
@@ -48,8 +48,8 @@ struct r600_draw {
static int r600_draw_common(struct r600_draw *draw)
{
- struct r600_context *rctx = (struct r600_context*)draw->ctx;
- struct r600_screen *rscreen = (struct r600_screen*)draw->ctx->screen;
+ struct r600_context *rctx = r600_context(draw->ctx);
+ struct r600_screen *rscreen = rctx->screen;
struct radeon_state *vs_resource;
struct r600_buffer *rbuffer;
unsigned i, j, offset, format, prim;