Skip to main content
added 313 characters in body
Source Link
Alayric
  • 291
  • 1
  • 2
  • 11

Never make your sf::RenderWindow global or static.

The SFML developer stated that global RenderWindow can cause issues:

Don't declare your RenderWindow in global scope, something happens in its constructor and some internal objects of SFML might not be initialized at this point.

Never make sf::RenderWindow global or static.

Never make your sf::RenderWindow global.

The SFML developer stated that global RenderWindow can cause issues:

Don't declare your RenderWindow in global scope, something happens in its constructor and some internal objects of SFML might not be initialized at this point.

Source Link
Alayric
  • 291
  • 1
  • 2
  • 11

Never make sf::RenderWindow global or static.