Added new method to get the right viewport size in stereo (side-by-side) and fix font rendering.

This commit is contained in:
Jonathas Costa
2018-04-20 11:22:23 -04:00
parent 1e0d41fb30
commit 5079beba78
6 changed files with 44 additions and 18 deletions
+2 -1
View File
@@ -537,7 +537,8 @@ glm::ivec2 RenderEngine::fontResolution() const {
value
);
if (hasValue && value == "framebuffer") {
return OsEng.windowWrapper().currentWindowResolution();
return OsEng.windowWrapper().getCurrentViewportSize();
//return OsEng.windowWrapper().currentWindowResolution();
}
else {
// The default is to use the window size