mesa: Silence uninitialized variable warnings in dummy_enum_func.
authorVinson Lee <vlee@vmware.com>
Fri, 20 Aug 2010 00:07:28 +0000 (17:07 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 20 Aug 2010 00:07:28 +0000 (17:07 -0700)
src/mesa/main/context.c

index b01fed1781ec97a0a6ab351c97d74b98896c6914..6205d3456a4269238397a3134a2abd63fbd9c750 100644 (file)
@@ -339,16 +339,16 @@ _mesa_destroy_visual( GLvisual *vis )
 static void
 dummy_enum_func(void)
 {
-   gl_buffer_index bi;
-   gl_colortable_index ci;
-   gl_face_index fi;
-   gl_frag_attrib fa;
-   gl_frag_result fr;
-   gl_texture_index ti;
-   gl_vert_attrib va;
-   gl_vert_result vr;
-   gl_geom_attrib ga;
-   gl_geom_result gr;
+   gl_buffer_index bi = BUFFER_FRONT_LEFT;
+   gl_colortable_index ci = COLORTABLE_PRECONVOLUTION;
+   gl_face_index fi = FACE_POS_X;
+   gl_frag_attrib fa = FRAG_ATTRIB_WPOS;
+   gl_frag_result fr = FRAG_RESULT_DEPTH;
+   gl_texture_index ti = TEXTURE_2D_ARRAY_INDEX;
+   gl_vert_attrib va = VERT_ATTRIB_POS;
+   gl_vert_result vr = VERT_RESULT_HPOS;
+   gl_geom_attrib ga = GEOM_ATTRIB_POSITION;
+   gl_geom_result gr = GEOM_RESULT_POS;
 
    (void) bi;
    (void) ci;