mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/mesa: Initialize tgsi_texture_offset Padding field.
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
68bccc40f5
commit
3466538171
1 changed files with 1 additions and 0 deletions
|
|
@ -4178,6 +4178,7 @@ translate_tex_offset(struct st_translate *t,
|
|||
offset.SwizzleX = in_offset->SwizzleX;
|
||||
offset.SwizzleY = in_offset->SwizzleY;
|
||||
offset.SwizzleZ = in_offset->SwizzleZ;
|
||||
offset.Padding = 0;
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue