Big thanks, now my code looks like:
Code Select
if(m_window->isOpen())
{
m_gui->draw(true);
// end the current frame
m_window->display();
}