summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-11-05 11:00:10 -0600
committerBrian Paul <[email protected]>2016-11-05 12:09:40 -0600
commitcfb5a9ab2321ae82c28655cee0537f1d42c57933 (patch)
tree5d67b5498c18fd6c65f27dce3723d4e7a95f44b7 /src/mesa/state_tracker/st_program.c
parent0148313ea36385edcd869a899b8aa5b82d194164 (diff)
st/mesa: initialize members of glsl_to_tgsi_instruction in emit_asm()
This fixes random crashes with MSVC release builds. It seems the members are implicitly initialized to zero with gcc, but not MSVC. In particular, the tex_offset_num_offset field was non-zero causing a loop over the NULL tex_offsets array to crash. Zero-init those fields and a few others to be safe. The regression began with acc23b04cfd64e "ralloc: remove memset from ralloc_size". Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
0 files changed, 0 insertions, 0 deletions