Fixed issue 1049(using first viewport size as framebuffer size) and 554(loading and ending screen will be visible on the first viewport only). Also fixed such that Lua Console adapts to window size and not framebuffer size.

This commit is contained in:
eriksunden
2020-01-24 15:53:29 +01:00
parent f481ff78b3
commit e3b3aec1ed
18 changed files with 84 additions and 47 deletions

View File

@@ -684,7 +684,7 @@ void SceneGraphNode::computeScreenSpaceData(RenderData& newData) {
return;
}
glm::ivec2 res = global::windowDelegate.currentWindowSize();
glm::ivec2 res = global::windowDelegate.currentSubwindowSize();
// Get the radius of node
double nodeRadius = static_cast<double>(this->boundingSphere());