From e0e9326bdadb268dbb5eeedb14404ac2f48c103e Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Wed, 16 Jan 2008 13:41:50 +1100 Subject: nv40: stronger type safety --- src/mesa/pipe/nv40/nv40_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/pipe/nv40/nv40_context.c') diff --git a/src/mesa/pipe/nv40/nv40_context.c b/src/mesa/pipe/nv40/nv40_context.c index 334e50ef89..f6fdd6b437 100644 --- a/src/mesa/pipe/nv40/nv40_context.c +++ b/src/mesa/pipe/nv40/nv40_context.c @@ -8,7 +8,7 @@ static const char * nv40_get_name(struct pipe_context *pipe) { - struct nv40_context *nv40 = (struct nv40_context *)pipe; + struct nv40_context *nv40 = nv40_context(pipe); static char buffer[128]; snprintf(buffer, sizeof(buffer), "NV%02X", nv40->chipset); @@ -80,7 +80,7 @@ nv40_get_paramf(struct pipe_context *pipe, int param) static void nv40_flush(struct pipe_context *pipe, unsigned flags) { - struct nv40_context *nv40 = (struct nv40_context *)pipe; + struct nv40_context *nv40 = nv40_context(pipe); struct nouveau_winsys *nvws = nv40->nvws; if (flags & PIPE_FLUSH_TEXTURE_CACHE) { @@ -107,7 +107,7 @@ nv40_flush(struct pipe_context *pipe, unsigned flags) static void nv40_destroy(struct pipe_context *pipe) { - struct nv40_context *nv40 = (struct nv40_context *)pipe; + struct nv40_context *nv40 = nv40_context(pipe); struct nouveau_winsys *nvws = nv40->nvws; if (nv40->draw) -- cgit v1.2.3