From 4d859f73fce9918381c65da55f046a7c605c9e65 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Jan 2004 18:57:05 +0000 Subject: added device driver hooks for BindProgram, NewProgram, DeleteProgram --- src/mesa/drivers/common/driverfuncs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index c3f4bb6516e..3c638befe7a 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -27,6 +27,7 @@ #include "imports.h" #include "buffers.h" #include "context.h" +#include "program.h" #include "texformat.h" #include "teximage.h" #include "texobj.h" @@ -106,6 +107,11 @@ _mesa_init_driver_functions(struct dd_function_table *driver) driver->CopyConvolutionFilter1D = _swrast_CopyConvolutionFilter1D; driver->CopyConvolutionFilter2D = _swrast_CopyConvolutionFilter2D; + /* Vertex/fragment programs */ + driver->BindProgram = NULL; + driver->NewProgram = _mesa_new_program; + driver->DeleteProgram = _mesa_delete_program; + /* simple state commands */ driver->AlphaFunc = NULL; driver->BlendColor = NULL; -- cgit v1.2.3