diff options
author | Vinson Lee <[email protected]> | 2010-08-19 17:07:28 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-08-19 17:07:28 -0700 |
commit | 48dca27e33b333ee7ed16287a348db16eef02ac1 (patch) | |
tree | cba392d55b9166648dfd680bfb54a219e17ac399 /src | |
parent | d3fe699b0b2d46480b699b3fa4c77e41eea8d30d (diff) |
mesa: Silence uninitialized variable warnings in dummy_enum_func.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index b01fed1781e..6205d3456a4 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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; |