fix signed/ unsigned comparison
This commit is contained in:
parent
a5ae6394a5
commit
d5f2595a25
1 changed files with 2 additions and 2 deletions
|
@ -2246,8 +2246,8 @@ void GLGizmoEmboss::init_icons()
|
|||
filenames, states, m_gui_cfg->icon_width, compress);
|
||||
|
||||
if (!is_loaded ||
|
||||
m_icons_texture.get_width() < ((int)states.size() * m_gui_cfg->icon_width) ||
|
||||
m_icons_texture.get_height() < ((int)filenames.size() * m_gui_cfg->icon_width)) {
|
||||
(size_t)m_icons_texture.get_width() < (states.size() * m_gui_cfg->icon_width) ||
|
||||
(size_t)m_icons_texture.get_height() < (filenames.size() * m_gui_cfg->icon_width)) {
|
||||
// bad load of icons, but all usage of m_icons_texture check that texture is initialized
|
||||
assert(false);
|
||||
m_icons_texture.reset();
|
||||
|
|
Loading…
Reference in a new issue