st/mesa: fix pipe_grid_info initializer
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 13 Feb 2016 16:01:17 +0000 (17:01 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 13 Feb 2016 16:08:24 +0000 (17:08 +0100)
Fixes MSVC build error which doesn't allow empty initializers.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_cb_compute.c

index 79a616cf33cda5d3fb21876127c89f4dc181e6d7..364159d62d8f33287f5f2c7a5a20527f253c4552 100644 (file)
@@ -42,7 +42,7 @@ static void st_dispatch_compute_common(struct gl_context *ctx,
       ctx->_Shader->CurrentProgram[MESA_SHADER_COMPUTE];
    struct st_context *st = st_context(ctx);
    struct pipe_context *pipe = st->pipe;
-   struct pipe_grid_info info = {};
+   struct pipe_grid_info info = { 0 };
 
    if (ctx->NewState)
       _mesa_update_state(ctx);