aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_tgsi_lower_depth_clamp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_tgsi_lower_depth_clamp.c b/src/mesa/state_tracker/st_tgsi_lower_depth_clamp.c
index 2b8ed079f81..14bb4b975db 100644
--- a/src/mesa/state_tracker/st_tgsi_lower_depth_clamp.c
+++ b/src/mesa/state_tracker/st_tgsi_lower_depth_clamp.c
@@ -351,10 +351,11 @@ st_tgsi_lower_depth_clamp(const struct tgsi_token *tokens,
int depth_range_const,
bool clip_negative_one_to_one)
{
- struct tgsi_depth_clamp_transform ctx = {0};
+ struct tgsi_depth_clamp_transform ctx;
struct tgsi_token *newtoks;
int newlen;
+ memset(&ctx, 0, sizeof(ctx));
tgsi_scan_shader(tokens, &ctx.info);
/* we only want to do this for the fragment shader, and the shader-stage