summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/glide/fxtris.c18
-rw-r--r--src/mesa/drivers/glide/fxvb.c17
2 files changed, 35 insertions, 0 deletions
diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c
index 5129a94476..150a3f8005 100644
--- a/src/mesa/drivers/glide/fxtris.c
+++ b/src/mesa/drivers/glide/fxtris.c
@@ -32,6 +32,8 @@
#include <stdio.h>
#include <math.h>
+#ifdef FX
+
#include "glheader.h"
#include "mtypes.h"
#include "macros.h"
@@ -822,3 +824,19 @@ void fxDDInitTriFuncs( GLcontext *ctx )
(void) fx_print_vertex;
}
+
+#else
+
+
+/*
+ * Need this to provide at least one external definition.
+ */
+
+extern int gl_fx_dummy_function_tris(void);
+int
+gl_fx_dummy_function_tris(void)
+{
+ return 0;
+}
+
+#endif /* FX */
diff --git a/src/mesa/drivers/glide/fxvb.c b/src/mesa/drivers/glide/fxvb.c
index 9468d83e3b..62e93f8e70 100644
--- a/src/mesa/drivers/glide/fxvb.c
+++ b/src/mesa/drivers/glide/fxvb.c
@@ -24,6 +24,8 @@
*/
/* $XFree86: xc/lib/GL/mesa/src/drv/tdfx/tdfxvb.c,v 1.7 2000/11/08 05:02:43 dawes Exp $ */
+#ifdef FX
+
#include "glheader.h"
#include "mtypes.h"
#include "mem.h"
@@ -391,3 +393,18 @@ void fxFreeVB( GLcontext *ctx )
fxMesa->UbyteColor.Ptr = 0;
}
}
+#else
+
+
+/*
+ * Need this to provide at least one external definition.
+ */
+
+extern int gl_fx_dummy_function_vb(void);
+int
+gl_fx_dummy_function_vb(void)
+{
+ return 0;
+}
+
+#endif /* FX */