summaryrefslogtreecommitdiff
path: root/src/mesa/main/api_noop.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-09 15:00:08 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-12 20:55:58 +0800
commit1c497bd4c652de95deaaed0c704c3b776b69aded (patch)
tree6ee35e48d235b25dbb68de51e9174eb422d63417 /src/mesa/main/api_noop.c
parent17f2649e269b9d98abd6a66f687ffa29904bf4a0 (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 f9ec69b511..a30c47da77 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;