I am wondering something about render images... this code makes the render image to copy all the pixels from GL to sf::Image? If so, when? Just when I call display?
sf::RenderImage image;
image.Create(100, 100);
image.SetActive(true);
glClearColor(0.f, 0.f, 0.f, 0.f);
glClear(GL_COLOR_BUFFER_BIT);
image.Display();
image.GetImage().SaveToFile("lol.png");