UI: Fix out of bound read catched by asan.

This commit is contained in:
Clément Foucault 2018-03-29 16:46:28 +02:00
parent d93e7e6430
commit 8b45fd8b61
1 changed files with 1 additions and 1 deletions

View File

@ -935,7 +935,7 @@ static void widgetbase_draw(uiWidgetBase *wtb, uiWidgetColors *wcol)
}
/* Draw everything in one drawcall */
if (inner_col1[3] || inner_col2[3] || outline_col[3] || emboss_col[4]) {
if (inner_col1[3] || inner_col2[3] || outline_col[3] || emboss_col[3]) {
widgetbase_set_uniform_colors_ubv(wtb, inner_col1, inner_col2, outline_col, emboss_col);
Gwn_Batch *roundbox_batch = ui_batch_roundbox_get();