Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-07-20 10:52:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-20 10:52:58 +0300
commiteb5cd628bdc9d23ade6d0b109fcf857de5bb9020 (patch)
treed7c46fb15c7816a3299f47659d79b7c1d8a0f97a /source/blender/editors/interface/interface_icons.c
parentb219ae4498ef329015932cb4ba052b0e168cbd81 (diff)
Fix T79089: Crash changing themes
Regression from 2840782d8478f.
Diffstat (limited to 'source/blender/editors/interface/interface_icons.c')
-rw-r--r--source/blender/editors/interface/interface_icons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index bac86adbabb..586f5e07997 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -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);
}
}