[DEV] not set the image in compositing if it does not change

This commit is contained in:
Edouard DUPIN 2017-01-03 21:06:50 +01:00
parent 54f4040a8d
commit 6e7af3cbb4

View File

@ -267,6 +267,11 @@ void ewol::compositing::Image::printPart(const vec2& _size,
void ewol::compositing::Image::setSource(const std::string& _newFile, const vec2& _size) {
clear();
if ( m_filename == _newFile
&& m_requestSize == _size) {
// Nothing to do ...
return;
}
ememory::SharedPtr<ewol::resource::TextureFile> resource = m_resource;
ememory::SharedPtr<ewol::resource::ImageDF> resourceDF = m_resourceDF;
m_filename = _newFile;