Application closes immediately after launch.
kennyrkun opened this issue · comments
Kenny McCormick commented
sf::Event::EventType::Closed
is being reported by display->pollEvent();
during the first few frames of the application being open.
This could perhaps be due to the nature of the function. I suspect the function is of return type int
and returns 0 when no event has been captured. The enum code for sf::Event::EventType::Closed
is I believe 0, thus causing the application to believe it is receiving a shutdown code. This will require further investigation.