summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv40/nv40_context.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-01-16 13:41:50 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-01-16 13:45:31 +1100
commite0e9326bdadb268dbb5eeedb14404ac2f48c103e (patch)
treecad1807addb4f13a50785dadc9f49854e94e0436 /src/mesa/pipe/nv40/nv40_context.c
parentbc1ca3793d661de343b956d66ef70605d7de2dbb (diff)
nv40: stronger type safety
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_context.c')
-rw-r--r--src/mesa/pipe/nv40/nv40_context.c6
1 files changed, 3 insertions, 3 deletions
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)