aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-01 09:56:21 -0600
committerBrian Paul <[email protected]>2016-08-01 12:20:19 -0600
commit500a3dd11f9668597325eae53c4540ca871eeb89 (patch)
treee5b9e52f8688293a5762d5372449d6203e3dc88a /src
parent13fa0513569d0145487e12f3bc3aa10bc51088f7 (diff)
st/mesa: silence missing braces warning in st_program.c
Silence a gcc warning: state_tracker/st_program.c: In function 'st_create_fp_variant': state_tracker/st_program.c:957:10: warning: missing braces around initializer [-Wmissing-braces] nir_lower_drawpixels_options options = {0}; ^ state_tracker/st_program.c:957:10: warning: (near initialization for 'options.texcoord_state_tokens') [-Wmissing-braces] Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index ebeed14ea2e..e297bb1d5d5 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -954,7 +954,7 @@ st_create_fp_variant(struct st_context *st,
/* glDrawPixels (color only) */
if (key->drawpixels) {
- nir_lower_drawpixels_options options = {0};
+ nir_lower_drawpixels_options options = {{0}};
unsigned samplers_used = stfp->Base.Base.SamplersUsed;
/* Find the first unused slot. */