[DEV] not set the image in compositing if it does not change
This commit is contained in:
parent
54f4040a8d
commit
6e7af3cbb4
@ -267,6 +267,11 @@ void ewol::compositing::Image::printPart(const vec2& _size,
|
|||||||
|
|
||||||
void ewol::compositing::Image::setSource(const std::string& _newFile, const vec2& _size) {
|
void ewol::compositing::Image::setSource(const std::string& _newFile, const vec2& _size) {
|
||||||
clear();
|
clear();
|
||||||
|
if ( m_filename == _newFile
|
||||||
|
&& m_requestSize == _size) {
|
||||||
|
// Nothing to do ...
|
||||||
|
return;
|
||||||
|
}
|
||||||
ememory::SharedPtr<ewol::resource::TextureFile> resource = m_resource;
|
ememory::SharedPtr<ewol::resource::TextureFile> resource = m_resource;
|
||||||
ememory::SharedPtr<ewol::resource::ImageDF> resourceDF = m_resourceDF;
|
ememory::SharedPtr<ewol::resource::ImageDF> resourceDF = m_resourceDF;
|
||||||
m_filename = _newFile;
|
m_filename = _newFile;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user