mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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 <vlee@freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
4603bea1aa
commit
f30f575e7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue