mesa: Move vbo draw functions into dd_function_table.
[mesa.git] / src / mesa / drivers / common / driverfuncs.c
index 8f2e3e075c82070efe1a8f9a04d72f6670e03d08..2ddfdb5efa8fbd8c2d57d303d11501a4447f9778 100644 (file)
@@ -55,6 +55,7 @@
 #include "tnl/tnl.h"
 #include "swrast/swrast.h"
 #include "swrast/s_renderbuffer.h"
+#include "vbo/vbo.h"
 
 #include "driverfuncs.h"
 #include "meta.h"
@@ -119,6 +120,10 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    /* ATI_fragment_shader */
    driver->NewATIfs = NULL;
 
+   /* Draw functions */
+   driver->Draw = _vbo_draw;
+   driver->DrawIndirect = _vbo_draw_indirect;
+
    /* simple state commands */
    driver->AlphaFunc = NULL;
    driver->BlendColor = NULL;