I have a thread one where i create the window:
sf::Window* wnd = new sf::Window(sf::VideoMode(400, 300), "some title", sf::Style::Close);
Then i pass the wnd ponter to two other threads.
In thread two i query window for events:
sf::Event event;
while (true)
while(wnd->PollEvent(event))
{
//....
}
And in thread three I draw in it:
while (true)
{
//...
wnd->Display();
}
The window is of course protected by proper locking.
This causes lots of
Failed to activate window's context
messages to the console. Is what i am trying to do even possible?