[Mesa-dev] [PATCH 3/3] st/mesa: add extra braces on nir_lower_wpos_ytransform_options initializer
Brian Paul
brianp at vmware.com
Wed Aug 17 14:39:43 UTC 2016
Since the type is an array inside a union. Silences MinGW warning.
---
src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index 73a692a..6470fae 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -234,7 +234,7 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog,
static const gl_state_index wposTransformState[STATE_LENGTH] = {
STATE_INTERNAL, STATE_FB_WPOS_Y_TRANSFORM
};
- nir_lower_wpos_ytransform_options wpos_options = {0};
+ nir_lower_wpos_ytransform_options wpos_options = {{0}};
struct pipe_screen *pscreen = st->pipe->screen;
memcpy(wpos_options.state_tokens, wposTransformState,
--
1.9.1
More information about the mesa-dev
mailing list