summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mach64/mach64_dd.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2004-02-06 00:16:26 +0000
committerDave Airlie <airliedfreedesktop.org>2004-02-06 00:16:26 +0000
commit6c7bb5ebbde6dfe19ecf0e9c6790c28b8b2e8d1e (patch)
treea3fd56662e57965b870cd20889c6d7bf89f5bcc2 /src/mesa/drivers/dri/mach64/mach64_dd.c
parent0fbeff2fa2e831e45e4dc6014c8f1e6abaa44aa1 (diff)
Remove warnings from mach64 build, fix up some _SOLO stuff,
update to newer Mesa interfaces...
Diffstat (limited to 'src/mesa/drivers/dri/mach64/mach64_dd.c')
-rw-r--r--src/mesa/drivers/dri/mach64/mach64_dd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/mach64/mach64_dd.c b/src/mesa/drivers/dri/mach64/mach64_dd.c
index 82f4c740aa..f1248bd8b7 100644
--- a/src/mesa/drivers/dri/mach64/mach64_dd.c
+++ b/src/mesa/drivers/dri/mach64/mach64_dd.c
@@ -59,7 +59,7 @@ static void mach64DDGetBufferSize( GLframebuffer *buffer,
static const GLubyte *mach64DDGetString( GLcontext *ctx, GLenum name )
{
mach64ContextPtr mmesa = MACH64_CONTEXT(ctx);
- static GLubyte buffer[128];
+ static char buffer[128];
unsigned offset;
const char * card_name = "Mach64 [Rage Pro]";
GLuint agp_mode = mmesa->mach64Screen->IsPCI ? 0 :
@@ -123,12 +123,12 @@ static void mach64DDFinish( GLcontext *ctx )
/* Initialize the driver's misc functions.
*/
-void mach64DDInitDriverFuncs( GLcontext *ctx )
+void mach64InitDriverFuncs( struct dd_function_table *functions )
{
- ctx->Driver.GetBufferSize = mach64DDGetBufferSize;
- ctx->Driver.ResizeBuffers = _swrast_alloc_buffers;
- ctx->Driver.GetString = mach64DDGetString;
- ctx->Driver.Finish = mach64DDFinish;
- ctx->Driver.Flush = mach64DDFlush;
- ctx->Driver.Error = NULL;
+ functions->GetBufferSize = mach64DDGetBufferSize;
+ functions->ResizeBuffers = _swrast_alloc_buffers;
+ functions->GetString = mach64DDGetString;
+ functions->Finish = mach64DDFinish;
+ functions->Flush = mach64DDFlush;
+
}