Hi. In my project, I'm trying to get window resizing working as I want it, with an sf::View. The problem line is:
window->setView(sf::View({0, 0, static_cast<float>(size.x), static_cast<float>(size.y)}));
Where size is a vector2u, from the resize event. replacing them with any static value also does the same thing. window is a pointer to an sf::RenderWindow.
What happens is, upon reaching this line, the application will segfault. Am I using this class completely wrong, or is there some other issue? The full project is on launchpad, the file with this error is here: http://bazaar.launchpad.net/~james-gangur/sqee/exp/view/head:/libsqee/app/application.cpp (http://bazaar.launchpad.net/~james-gangur/sqee/exp/view/head:/libsqee/app/application.cpp) (line 69)
I'm running Ubuntu 14.04, with stable SFML 2.1 from the repos.