Hello,
I am experimenting an odd issue with this code:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderTexture test;
test.create(150, 150);
sf::RectangleShape bg(sf::Vector2f(50, 50));
bg.setFillColor(sf::Color(255, 0, 0));
test.draw(bg);
return 0;
}
The call to sf::RenderTexture::draw crashes the program.
I did not have this issue back when I used MSVC10 and the SFML 2.1 binaries downloaded from the site. Since I needed advanced C++11 features, I upgraded to MSVC12, built SFML from source using
SFML Installer. Everything compiled as usual (it links just fine, the binaries were indeed made by and for MSVC12), until I started to call sf::RenderTexture to, well, render on a texture.
Note that sf::RenderWindow works just fine.
I am rebuilding SFML one more time right now, just in case something went wrong the first time, but it seems unlikely.
Any idea?
EDIT:
Even with the rebuild it crashes. I believe we can rule that one out.