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

@@ -156,7 +156,6 @@ void NodeImage::load_url(const std::string& url)
uint8_t* rgba = stbi_load_from_memory(m_remote_asset->m_data, m_remote_asset->m_len, &w, &h, &c, 4);
m_remote_texture = std::make_shared<Texture2D>();
m_remote_texture->create(w, h, GL_RGBA8, GL_RGBA, rgba);
m_remote_texture->auto_destroy = true;
if (m_use_mipmaps)
m_remote_texture->create_mipmaps();
delete rgba;