I think i'm not on shrooms but I just found a sick bug in SFML's code.
RenderTexture::RenderTexture() :
m_impl(NULL){}
RenderTexture::~RenderTexture(){
delete m_impl;
}
I think further explanations are not needed.. The fix is easy as well!
delete m_impl; -> if(m_impl) delete m_impl;
Since an object of type sf::RenderTexture is not valid until a call to create, whenever an instance of it is deallocated it will cause a crash unless create was called.
Thanks!