From b5ee368baf6472a79d250f0be418200760f4b43d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 28 Oct 2005 14:32:49 +0000 Subject: TNL module needs to implement ctx->Driver.ProgramStringNotify() function so that calls to glProgramStringARB() to specify a new program causes the TNL-attached data to get recomputed. --- src/mesa/drivers/common/driverfuncs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/common/driverfuncs.c') diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index 8503135a874..9fe4ee3ad2d 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -45,6 +45,7 @@ #endif #include "driverfuncs.h" +#include "tnl/tnl.h" #include "swrast/swrast.h" @@ -222,6 +223,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver) driver->NeedFlush = 0; driver->SaveNeedFlush = 0; + driver->ProgramStringNotify = _tnl_program_string; driver->FlushVertices = NULL; driver->SaveFlushVertices = NULL; driver->NotifySaveBegin = NULL; -- cgit v1.2.3