SFML community forums

Help => Graphics => Topic started by: Daniel Schreiber Mendes on November 16, 2019, 09:55:42 am

Title: no matching function for call to ‘sf::Texture::update(sf::Texture&)
Post by: Daniel Schreiber Mendes on November 16, 2019, 09:55:42 am
Hey, why does this give me the following error?
sf::Texture t;
sf::Texture t2;
   
t.create(300, 300);
t2.create(100, 100);
   
t.update(t2);
 
error: no matching function for call to ‘sf::Texture::update(sf::Texture&)
     t.update(t2);
 
When this function definitely exists?
void sf::Texture::update(const Texture &texture)       
 
Title: Re: no matching function for call to ‘sf::Texture::update(sf::Texture&)
Post by: eXpl0it3r on November 16, 2019, 09:37:12 pm
Maybe you're using an older version of SFML or you didn't update your header files?

Also is that really the code you're using, or does your code actually look different?