Remove some unused structure fields, add some comments, and ifdef out some
[mesa.git] / src / mesa / drivers / dri / mga / mgadd.c
index d2f11d8d457de8c74dd2622b0c3f96a89220d2f6..7310641efa3c4bd83e24570fc4c77305e2e5be27 100644 (file)
@@ -28,6 +28,7 @@
 
 
 #include "mtypes.h"
+#include "framebuffer.h"
 
 #include "mm.h"
 #include "mgacontext.h"
@@ -48,7 +49,7 @@
  ***************************************/
 
 
-static const GLubyte *mgaDDGetString( GLcontext *ctx, GLenum name )
+static const GLubyte *mgaGetString( GLcontext *ctx, GLenum name )
 {
    mgaContextPtr mmesa = MGA_CONTEXT( ctx );
    static char buffer[128];
@@ -73,7 +74,6 @@ static const GLubyte *mgaDDGetString( GLcontext *ctx, GLenum name )
 }
 
 
-
 static void mgaBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height)
 {
    GET_CURRENT_CONTEXT(ctx);
@@ -89,9 +89,10 @@ static void mgaBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height)
    UNLOCK_HARDWARE( mmesa );
 }
 
-void mgaDDInitDriverFuncs( GLcontext *ctx )
+
+void mgaInitDriverFuncs( struct dd_function_table *functions )
 {
-   ctx->Driver.GetBufferSize = mgaBufferSize;
-   ctx->Driver.ResizeBuffers = _swrast_alloc_buffers;
-   ctx->Driver.GetString = mgaDDGetString;
+   functions->GetBufferSize = mgaBufferSize;
+   functions->ResizeBuffers = _mesa_resize_framebuffer;
+   functions->GetString = mgaGetString;
 }