I also get it for the following code which does draw something each frame:
sf::Shape Rect = sf::Shape::Rectangle( 0, 650, 50, 675, sf::Color( 255, 0, 0 ) );
while( 1 )
{
//App.Clear( iniFile.GetColorSfBg() );
sf::Event Event;
while( App.GetEvent( Event ) )
{
if( Event.Type == sf::Event::Closed )
{
App.Clear();
App.Close();
defGrid.XYGridPointers.clear();
return 0;
}
}
float FrameRate = 1.f / App.GetFrameTime();
std::stringstream FPSString;
FPSString << (int)FrameRate;
App.Draw( Rect );
sf::String Text( FPSString.str(), MyFont, iniFile.GetFontSize() );
Text.SetPosition( 0, 650 );
Text.SetColor( iniFile.GetColorSfFg() );
App.Draw( Text );
if( defGrid.HasChanged() )
{
App.Clear( sf::Color( 0, 255, 0 ) );
defGrid.Draw( App, MyFont, iniFile );
}
App.Display();
}