Hello. Simple question from noob. Tried to compile example project, everything looks OK:
int main()
{
sf::RenderWindow MainRenderWindow((sf::VideoMode(800, 600), "my game");
<skipped>
}
Changed a little:
sf::RenderWindow MainRenderWindow;
int main()
{
MainRenderWindow.create(sf::VideoMode(800, 600), "my game");
}
It's crashed before entering main() function. I think it's crashed here:
void GlContext::initResource()
{
Lock lock(mutex); <----- NULL value
So... If the default constructor crashes, may be better to delete it?
My config: VS 2017, SFML 2.4.2, build x64 Debug