From: Samuel Pitoiset Date: Sat, 13 Feb 2016 16:01:17 +0000 (+0100) Subject: st/mesa: fix pipe_grid_info initializer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b410ed9215506398191d0120357564eca0cd9717;p=mesa.git st/mesa: fix pipe_grid_info initializer Fixes MSVC build error which doesn't allow empty initializers. Signed-off-by: Samuel Pitoiset Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/state_tracker/st_cb_compute.c b/src/mesa/state_tracker/st_cb_compute.c index 79a616cf33c..364159d62d8 100644 --- a/src/mesa/state_tracker/st_cb_compute.c +++ b/src/mesa/state_tracker/st_cb_compute.c @@ -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);