summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2017-03-22 16:21:41 -0700
committerVinson Lee <[email protected]>2017-04-12 15:43:30 -0700
commitf30f575e7b4bdb39012709ba2dd3104a97a53ffc (patch)
treec3b0c2b4c2b924be9924f107d2530a5933e2edac /src/mesa/state_tracker
parent4603bea1aa0879656f7efb1e19197488bfdb1f41 (diff)
st/mesa: Fix missing-braces warning.
CXX state_tracker/st_glsl_to_nir.lo state_tracker/st_glsl_to_nir.cpp:250:57: warning: suggest braces around initialization of subobject [-Wmissing-braces] nir_lower_wpos_ytransform_options wpos_options = {0}; ^ {} Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index 72fd70b2155..1d850ef899d 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -248,7 +248,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,