From 0fc1cd5e9125dfe86b9dc31ec8084ee1f28aef47 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 8 Sep 2009 17:57:43 +0800 Subject: mesa/tnl: Respect mfeatures.h. _tnl_RasterPos should be disabled with FEATURE_rastpos. --- src/mesa/drivers/common/driverfuncs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 a9f3c8e727..4d4d6ace7a 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -31,6 +31,7 @@ #include "main/framebuffer.h" #include "main/mipmap.h" #include "main/queryobj.h" +#include "main/rastpos.h" #include "main/renderbuffer.h" #include "main/texcompress.h" #include "main/texformat.h" @@ -85,7 +86,9 @@ _mesa_init_driver_functions(struct dd_function_table *driver) /* framebuffer/image functions */ driver->Clear = _swrast_Clear; driver->Accum = _swrast_Accum; - driver->RasterPos = _tnl_RasterPos; + + _MESA_INIT_RASTPOS_FUNCTIONS(driver, _tnl_); + driver->DrawPixels = _swrast_DrawPixels; driver->ReadPixels = _swrast_ReadPixels; driver->CopyPixels = _swrast_CopyPixels; -- cgit v1.2.3