remove texture auto_destroy flag

This commit is contained in:
2019-12-01 18:52:41 +01:00
parent f6c1194cb3
commit 94cf227704
7 changed files with 4 additions and 19 deletions

View File

@@ -208,7 +208,6 @@ bool Brush::load_tip(const std::string& path, const std::string& thumb)
return false;
}
m_tip_texture->create_mipmaps();
m_tip_texture->auto_destroy = true;
m_brush_path = path;
m_brush_thumb_path = thumb;
auto sz = m_tip_texture->size();
@@ -227,7 +226,6 @@ bool Brush::load_dual(const std::string& path, const std::string& thumb)
return false;
}
m_dual_texture->create_mipmaps();
m_dual_texture->auto_destroy = true;
m_dual_path = path;
m_dual_thumb_path = thumb;
return true;
@@ -244,7 +242,6 @@ bool Brush::load_pattern(const std::string& path, const std::string& thumb)
return false;
}
m_pattern_texture->create_mipmaps();
m_pattern_texture->auto_destroy = true;
m_pattern_path = path;
m_pattern_thumb_path = thumb;
return true;
@@ -265,7 +262,6 @@ bool Brush::load()
return false;
}
m_tip_texture->create_mipmaps();
m_tip_texture->auto_destroy = true;
}
if (!m_dual_path.empty() && !m_dual_texture)
{
@@ -281,7 +277,6 @@ bool Brush::load()
return false;
}
m_dual_texture->create_mipmaps();
m_dual_texture->auto_destroy = true;
}
if (!m_pattern_path.empty() && !m_pattern_texture)
{
@@ -298,7 +293,6 @@ bool Brush::load()
return false;
}
m_pattern_texture->create_mipmaps();
m_pattern_texture->auto_destroy = true;
}
return true;
}