summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/driverfuncs.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-08 17:57:43 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-13 17:38:05 +0800
commit0fc1cd5e9125dfe86b9dc31ec8084ee1f28aef47 (patch)
treea4827b09ae5244891ad544ff17d118aa4fd0073c /src/mesa/drivers/common/driverfuncs.c
parent5f471a37aa00d1dd544d76a6b2de47f0b60adcba (diff)
mesa/tnl: Respect mfeatures.h.
_tnl_RasterPos should be disabled with FEATURE_rastpos.
Diffstat (limited to 'src/mesa/drivers/common/driverfuncs.c')
-rw-r--r--src/mesa/drivers/common/driverfuncs.c5
1 files changed, 4 insertions, 1 deletions
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;