summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-01-05 05:31:42 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-01-05 05:31:42 +0000
commitf4b02d1a2675d4a0699b8995a422fbd413c32301 (patch)
tree07bcec53f4c6a8db68a7c4b85a6203bea5d3e3c5 /src/mesa/main
parent58e991705392a2e17a1c8b034f4083a0adaf1943 (diff)
various compilation/warning fixes
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/Makefile.X113
-rw-r--r--src/mesa/main/context.c4
-rw-r--r--src/mesa/main/enable.c3
-rw-r--r--src/mesa/main/varray.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/main/Makefile.X11 b/src/mesa/main/Makefile.X11
index d5ab089af1..f1b7698a92 100644
--- a/src/mesa/main/Makefile.X11
+++ b/src/mesa/main/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.37 2000/12/28 22:11:04 keithw Exp $
+# $Id: Makefile.X11,v 1.38 2001/01/05 05:31:42 keithw Exp $
# Mesa 3-D graphics library
# Version: 3.5
@@ -160,7 +160,6 @@ DRIVER_SOURCES = \
FX/fxtexman.c \
FX/fxtris.c \
FX/fxvb.c \
- FX/fxsimplerender.c \
FX/fxglidew.c \
X/glxapi.c \
X/fakeglx.c \
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 12eb9b791a..8624cb62e7 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.114 2000/12/26 05:09:28 keithw Exp $ */
+/* $Id: context.c,v 1.115 2001/01/05 05:31:42 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -59,7 +59,7 @@
#include "math/m_vertices.h"
#include "math/m_matrix.h"
#include "math/m_xform.h"
-#include "math/math.h"
+#include "math/mathmod.h"
#endif
#if defined(MESA_TRACE)
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 5806f9c098..ca1cd5cf75 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1,4 +1,4 @@
-/* $Id: enable.c,v 1.38 2000/12/27 22:52:45 keithw Exp $ */
+/* $Id: enable.c,v 1.39 2001/01/05 05:31:42 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -85,6 +85,7 @@ client_state( GLcontext *ctx, GLenum cap, GLboolean state )
break;
default:
gl_error( ctx, GL_INVALID_ENUM, "glEnable/DisableClientState" );
+ return;
}
if (*var == flag)
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 0050d9a1a1..6d9f3462b9 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -1,4 +1,4 @@
-/* $Id: varray.c,v 1.35 2000/12/28 22:11:05 keithw Exp $ */
+/* $Id: varray.c,v 1.36 2001/01/05 05:31:42 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -509,8 +509,8 @@ _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
GLboolean tflag, cflag, nflag; /* enable/disable flags */
GLint tcomps, ccomps, vcomps; /* components per texcoord, color, vertex */
- GLenum ctype; /* color type */
- GLint coffset, noffset, voffset;/* color, normal, vertex offsets */
+ GLenum ctype = 0; /* color type */
+ GLint coffset = 0, noffset = 0, voffset;/* color, normal, vertex offsets */
GLint defstride; /* default stride */
GLint c, f;
GLint coordUnitSave;