gallium/util: fix two MSVC compiler warnings
[mesa.git] / src / gallium / auxiliary / util / u_simple_shaders.c
index 4046ab1202b22e9215b25d0292d6da6fa6b61be6..d62a65579ae41e1267dfd39e0333f7d97b116e7b 100644 (file)
@@ -117,8 +117,8 @@ util_make_vertex_passthrough_shader_with_so(struct pipe_context *pipe,
 
 void *util_make_layered_clear_vertex_shader(struct pipe_context *pipe)
 {
-   const unsigned semantic_names[] = {TGSI_SEMANTIC_POSITION,
-                                      TGSI_SEMANTIC_GENERIC};
+   const enum tgsi_semantic semantic_names[] = {TGSI_SEMANTIC_POSITION,
+                                                TGSI_SEMANTIC_GENERIC};
    const unsigned semantic_indices[] = {0, 0};
 
    return util_make_vertex_passthrough_shader_with_so(pipe, 2, semantic_names,