summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_noop.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-09-09 15:00:08 +0800
committerBrian Paul <[email protected]>2009-09-30 08:31:56 -0600
commita73ba2d31b87e974f6846a8aaced704634f6f657 (patch)
treeb89eb6d9c8cf070c4ebbfd152a2aa1b853ad20ba /src/mesa/main/api_noop.c
parentaefa1f6ab1d9267b223b06ae205ab34c8e0d7c02 (diff)
mesa/main: Make FEATURE_dlist follow feature conventions.
As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
Diffstat (limited to 'src/mesa/main/api_noop.c')
-rw-r--r--src/mesa/main/api_noop.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c
index 23c52177d8e..06c287fd194 100644
--- a/src/mesa/main/api_noop.c
+++ b/src/mesa/main/api_noop.c
@@ -30,9 +30,7 @@
#include "context.h"
#include "light.h"
#include "macros.h"
-#if FEATURE_dlist
#include "dlist.h"
-#endif
#include "eval.h"
#include "glapi/dispatch.h"
@@ -996,10 +994,9 @@ _mesa_noop_vtxfmt_init( GLvertexformat *vfmt )
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
vfmt->Begin = _mesa_noop_Begin;
-#if FEATURE_dlist
- vfmt->CallList = _mesa_CallList;
- vfmt->CallLists = _mesa_CallLists;
-#endif
+
+ _MESA_INIT_DLIST_VTXFMT(vfmt, _mesa_);
+
vfmt->Color3f = _mesa_noop_Color3f;
vfmt->Color3fv = _mesa_noop_Color3fv;
vfmt->Color4f = _mesa_noop_Color4f;