summaryrefslogtreecommitdiff
path: root/src/mesa/main/rastpos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/rastpos.h')
-rw-r--r--src/mesa/main/rastpos.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/mesa/main/rastpos.h b/src/mesa/main/rastpos.h
index 363f86ad87..767d6f2677 100644
--- a/src/mesa/main/rastpos.h
+++ b/src/mesa/main/rastpos.h
@@ -32,9 +32,16 @@
#define RASTPOS_H
-#include "glheader.h"
+#include "main/mtypes.h"
+#if FEATURE_rastpos
+
+#define _MESA_INIT_RASTPOS_FUNCTIONS(driver, impl) \
+ do { \
+ (driver)->RasterPos = impl ## RasterPos; \
+ } while (0)
+
extern void GLAPIENTRY
_mesa_RasterPos2d(GLdouble x, GLdouble y);
@@ -186,8 +193,22 @@ extern void GLAPIENTRY
_mesa_WindowPos4svMESA(const GLshort *v);
extern void
-_mesa_init_rastpos( GLcontext * ctx );
+_mesa_init_rastpos_dispatch(struct _glapi_table *disp);
+
+#else /* FEATURE_rastpos */
+
+#define _MESA_INIT_RASTPOS_FUNCTIONS(driver, impl) do { } while (0)
+
+static INLINE void
+_mesa_init_rastpos_dispatch(struct _glapi_table *disp)
+{
+}
+
+#endif /* FEATURE_rastpos */
+
+extern void
+_mesa_init_rastpos(GLcontext *ctx);
/*@}*/
-#endif
+#endif /* RASTPOS_H */