util: fix a compile failure in u_compute.c on windows
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 22:29:26 +0000 (18:29 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 23:04:20 +0000 (19:04 -0400)
src/gallium/auxiliary/util/u_compute.c

index e1e24a28c2ab45413018a31aaa3440e6bc9af5ae..ccf7119291b45cea759a2affd515879ea16dea98 100644 (file)
@@ -105,7 +105,7 @@ void util_compute_blit(struct pipe_context *ctx, struct pipe_blit_info *blit_inf
                       blit_info->dst.box.z,
                       0};
 
-   struct pipe_constant_buffer cb = {};
+   struct pipe_constant_buffer cb = {0};
    cb.buffer_size = sizeof(data);
    cb.user_buffer = data;
    ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, &cb);