summaryrefslogtreecommitdiff
path: root/src/mesa/main/api_loopback.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-12 18:59:13 +0800
committerBrian Paul <brianp@vmware.com>2009-09-30 08:31:56 -0600
commitcef97267d696d37f4dccb22951499ca25d5d87ad (patch)
tree27154b35764d4bd573667b6338e2873a95cc900d /src/mesa/main/api_loopback.h
parenta73ba2d31b87e974f6846a8aaced704634f6f657 (diff)
mesa/main: New feature FEATURE_beginend.
This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
Diffstat (limited to 'src/mesa/main/api_loopback.h')
-rw-r--r--src/mesa/main/api_loopback.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mesa/main/api_loopback.h b/src/mesa/main/api_loopback.h
index 6f85bbc1d92..3140eb515ee 100644
--- a/src/mesa/main/api_loopback.h
+++ b/src/mesa/main/api_loopback.h
@@ -27,11 +27,19 @@
#ifndef API_LOOPBACK_H
#define API_LOOPBACK_H
-#include "glheader.h"
+#include "main/mtypes.h"
-
-struct _glapi_table;
+#if FEATURE_beginend
extern void _mesa_loopback_init_api_table( struct _glapi_table *dest );
-#endif
+#else /* FEATURE_beginend */
+
+static INLINE void
+_mesa_loopback_init_api_table( struct _glapi_table *dest )
+{
+}
+
+#endif /* FEATURE_beginend */
+
+#endif /* API_LOOPBACK_H */