summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/scenecamera
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-11-08 14:36:59 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-11-10 06:49:12 +0000
commit0909b85bc3c2d4c4c623ac09909b86a631d3a88f (patch)
tree97a866811e06a8c8bd811770dfe7b6187318cb0e /src/Authoring/Studio/Palettes/scenecamera
parent2d164be0be77a8d30d06ab567646fc00ac877bc8 (diff)
Fix issues with rendering layers into overlay preview
The renderer gets confused when we try to fake the presentation size, so always render the preview as presentation size instead of trying to render it smaller. We already need full size preview for the scene camera tab, so usually not rendering an additional smaller version is a performance gain. Since the overlay size is now capped to the presentation size, this shouldn't affect the preview quality. Task-number: QT3DS-2568 Task-number: QT3DS-2575 Task-number: QT3DS-2641 Change-Id: I75d4ab08089998c2b718ff9f9ab2640262997789 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/scenecamera')
-rw-r--r--src/Authoring/Studio/Palettes/scenecamera/scenecameraglwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/scenecamera/scenecameraglwidget.cpp b/src/Authoring/Studio/Palettes/scenecamera/scenecameraglwidget.cpp
index f53dea44..8921a0cb 100644
--- a/src/Authoring/Studio/Palettes/scenecamera/scenecameraglwidget.cpp
+++ b/src/Authoring/Studio/Palettes/scenecamera/scenecameraglwidget.cpp
@@ -167,7 +167,7 @@ void SceneCameraGlWidget::paintGL()
QSize fboSize;
qt3ds::QT3DSU32 textureId;
- renderer.getFullSizePreviewFbo(fboSize, textureId);
+ renderer.getPreviewFbo(fboSize, textureId);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, GLuint(textureId));