Module: Mesa
Branch: master
Commit: b410ed9215506398191d0120357564eca0cd9717
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b410ed9215506398191d0120357564eca0cd9717

Author: Samuel Pitoiset <[email protected]>
Date:   Sat Feb 13 17:01:17 2016 +0100

st/mesa: fix pipe_grid_info initializer

Fixes MSVC build error which doesn't allow empty initializers.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>

---

 src/mesa/state_tracker/st_cb_compute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_cb_compute.c 
b/src/mesa/state_tracker/st_cb_compute.c
index 79a616c..364159d 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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to