Follow-up of c370bb7141 -> Do not force even size of toolbars icon textures

This commit is contained in:
Enrico Turri 2019-12-05 14:43:18 +01:00
parent 90741c993d
commit 8728f192c6
2 changed files with 6 additions and 6 deletions

View file

@ -1195,9 +1195,9 @@ bool GLToolbar::generate_icons_texture() const
}
unsigned int sprite_size_px = (unsigned int)(m_layout.icons_size * m_layout.scale);
// force even size
if (sprite_size_px % 2 != 0)
sprite_size_px += 1;
// // force even size
// if (sprite_size_px % 2 != 0)
// sprite_size_px += 1;
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
if (res)

View file

@ -956,9 +956,9 @@ bool GLGizmosManager::generate_icons_texture() const
states.push_back(std::make_pair(0, true));
unsigned int sprite_size_px = (unsigned int)(m_overlay_icons_size * m_overlay_scale);
// force even size
if (sprite_size_px % 2 != 0)
sprite_size_px += 1;
// // force even size
// if (sprite_size_px % 2 != 0)
// sprite_size_px += 1;
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
if (res)