mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
ENABLE_COMPRESSED_TEXTURES set as default
This commit is contained in:
parent
301eda7369
commit
00b9a3ad32
13 changed files with 2 additions and 291 deletions
|
@ -194,11 +194,7 @@ bool GLToolbar::init(const ItemsIconsTexture::Metadata& icons_texture, const Bac
|
|||
#endif // ENABLE_SVG_ICONS
|
||||
|
||||
if (!background_texture.filename.empty())
|
||||
#if ENABLE_COMPRESSED_TEXTURES
|
||||
res = m_background_texture.texture.load_from_file(path + background_texture.filename, false, true);
|
||||
#else
|
||||
res = m_background_texture.texture.load_from_file(path + background_texture.filename, false);
|
||||
#endif // ENABLE_COMPRESSED_TEXTURES
|
||||
|
||||
if (res)
|
||||
m_background_texture.metadata = background_texture;
|
||||
|
@ -1342,11 +1338,7 @@ bool GLToolbar::generate_icons_texture() const
|
|||
states.push_back(std::make_pair(1, true));
|
||||
}
|
||||
|
||||
#if ENABLE_COMPRESSED_TEXTURES
|
||||
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, (unsigned int)(m_layout.icons_size * m_layout.scale), true);
|
||||
#else
|
||||
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, (unsigned int)(m_layout.icons_size * m_layout.scale));
|
||||
#endif // ENABLE_COMPRESSED_TEXTURES
|
||||
if (res)
|
||||
m_icons_texture_dirty = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue