Fix T79089: Crash changing themes

Regression from 2840782d84.
This commit is contained in:
Campbell Barton 2020-07-20 17:52:58 +10:00
parent b219ae4498
commit eb5cd628bd
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #79089, Exception When Changing to Blender Light Theme
1 changed files with 2 additions and 2 deletions

View File

@ -881,7 +881,7 @@ void UI_icons_reload_internal_textures(void)
}
if (need_icons_with_border && icongltex.tex[1] == NULL) {
icongltex.tex[0] = GPU_texture_create_nD(b32buf_border->x,
icongltex.tex[1] = GPU_texture_create_nD(b32buf_border->x,
b32buf_border->y,
0,
2,
@ -891,7 +891,7 @@ void UI_icons_reload_internal_textures(void)
0,
false,
NULL);
GPU_texture_add_mipmap(icongltex.tex[0], GPU_DATA_UNSIGNED_BYTE, 1, b16buf_border->rect);
GPU_texture_add_mipmap(icongltex.tex[1], GPU_DATA_UNSIGNED_BYTE, 1, b16buf_border->rect);
}
}