From caf40d5d145185d6a4c3ce8ff7c30ec93c040abd Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Mon, 17 Aug 2009 14:45:50 +0200 Subject: nv50: remove a few cases of directly casting struct pipe_context --- src/gallium/drivers/nv50/nv50_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nv50/nv50_context.c') 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); -- cgit v1.2.3