Merge pull request #2416 from OpenSpace/issue/2371

Apply FOV changes to all windows rather than only the first window
This commit is contained in:
Gene Payne
2022-12-22 09:34:43 -07:00
committed by GitHub

View File

@@ -912,7 +912,9 @@ void setSgctDelegateFunctions() {
sgctDelegate.setHorizFieldOfView = [](float hFovDeg) {
ZoneScoped
Engine::instance().windows().front()->setHorizFieldOfView(hFovDeg);
for (std::unique_ptr<sgct::Window> const& w : Engine::instance().windows()) {
w->setHorizFieldOfView(hFovDeg);
}
};
#ifdef WIN32
sgctDelegate.getNativeWindowHandle = [](size_t windowIndex) -> void* {