Hey there. I'm currently working on a game on linux and it compiles and works fine. But when I try to run my project on win10, I get the error "Impossible to activate render texture (failed to create backup context)
Failed to activate OpenGL context: ."
This function is being passed to the threads and drawing to targetTex in it causes the error:
void LightScene::doRayTracing(int i, Emitter &emitter, RenderTexture &_targetTex, std::mutex &rtLock) {
emitter.updateRayTracing();
rtLock.lock();
targetTex.draw(emitter.createMesh(), BlendAdd);
targetTex.display();
rtLock.unlock();
}
As I can figure out, the problem is with changing the context, but I see no possible reasons for it. SFML 2.5.0 and 2.5.1 give the same result and all drivers are up-to-date.