Fix T80327 UI: Glitches in UI drawing

This was caused by an uninitialized variable that was left
unchanged when calling GPU_vertformat_clear.
This commit is contained in:
Clément Foucault 2020-09-10 23:30:58 +02:00
parent c01f8bb672
commit 8ff397b3b1
Notes: blender-bot 2023-02-14 01:11:05 +01:00
Referenced by issue #80327, Glitches in UI drawing
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ void GPU_vertformat_clear(GPUVertFormat *format)
format->packed = false;
format->name_offset = 0;
format->name_len = 0;
format->deinterleaved = false;
for (uint i = 0; i < GPU_VERT_ATTR_MAX_LEN; i++) {
format->attrs[i].name_len = 0;