summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-05-25 13:35:21 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-05-25 13:35:21 +0000
commit39e14d2cffb8627bf8b6587a6d5590f50c6910b0 (patch)
tree1b787313a052af400ec366098fd18f48274bd91a /src
parent741b9804336e291d6ea1f1b664a68e08d77d2e24 (diff)
Provide initial values for some variables.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl_dd/t_dd_tritmp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl_dd/t_dd_tritmp.h b/src/mesa/tnl_dd/t_dd_tritmp.h
index a822c38255..0bf32ff344 100644
--- a/src/mesa/tnl_dd/t_dd_tritmp.h
+++ b/src/mesa/tnl_dd/t_dd_tritmp.h
@@ -131,10 +131,10 @@ static void TAG(triangle)( GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
{
struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb;
VERTEX *v[3];
- GLfloat offset;
+ GLfloat offset = 0;
GLfloat z[3];
GLenum mode = GL_FILL;
- GLuint facing;
+ GLuint facing = 0;
LOCAL_VARS(3);
/* fprintf(stderr, "%s\n", __FUNCTION__); */
@@ -398,10 +398,10 @@ static void TAG(quad)( GLcontext *ctx,
{
struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb;
VERTEX *v[4];
- GLfloat offset;
+ GLfloat offset = 0;
GLfloat z[4];
GLenum mode = GL_FILL;
- GLuint facing;
+ GLuint facing = 0;
LOCAL_VARS(4);
v[0] = (VERTEX *)GET_VERTEX(e0);