mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 15:04:58 +01:00
Merge pull request #386 from MaSzyna-EU07/fix/editor-trackbed-texture-crash
fix(editor): the texture pickers let go of the images scrolled past, the memory no longer runs out
This commit is contained in:
@@ -102,6 +102,11 @@ public:
|
||||
virtual void Bind_Texture( std::size_t const Unit, texture_handle const Texture ) = 0;
|
||||
virtual auto Texture( texture_handle const Texture ) -> ITexture & = 0;
|
||||
virtual auto Texture( texture_handle const Texture ) const -> ITexture const & = 0;
|
||||
// a texture the scene has never drawn taken out of the gfx card and the memory, read again when it's used: the image of a
|
||||
// texture picker scrolled past. backends which keep their textures otherwise leave it
|
||||
virtual void Unload_Texture( texture_handle const Texture ) {}
|
||||
// the same for all the textures of a material, those of its variants with them
|
||||
void Unload_Material( material_handle const Material );
|
||||
// utility methods
|
||||
virtual void Pick_Control_Callback( std::function<void( TSubModel const *, const glm::vec2 )> Callback ) = 0;
|
||||
virtual void Pick_Node_Callback( std::function<void( scene::basic_node * )> Callback ) = 0;
|
||||
|
||||
Reference in New Issue
Block a user