summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_context.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-08-17 14:45:50 +0200
committerMaarten Maathuis <madman2003@gmail.com>2009-08-17 18:48:14 +0200
commitcaf40d5d145185d6a4c3ce8ff7c30ec93c040abd (patch)
treed01f8d955ff93a524f973cf33f16c4ed82973f3c /src/gallium/drivers/nv50/nv50_context.c
parent97cc526eb7ae17c6ec3509a129863ea85f4e8900 (diff)
nv50: remove a few cases of directly casting struct pipe_context
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c
index 48f36d6a8b..6e8f4f9750 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -47,7 +47,7 @@ nv50_flush(struct pipe_context *pipe, unsigned flags,
static void
nv50_destroy(struct pipe_context *pipe)
{
- struct nv50_context *nv50 = (struct nv50_context *)pipe;
+ struct nv50_context *nv50 = nv50_context(pipe);
draw_destroy(nv50->draw);
FREE(nv50);