summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/graphobjects/Qt3DSRenderScene.h
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2020-05-05 11:01:30 +0300
committerAntti Määttä <antti.maatta@qt.io>2020-05-07 08:35:00 +0300
commitfa819899abd4d405da782b34abde8a23cbc2da5a (patch)
treefc0f51b9300763414f7ff8128a5512c13b694bf6 /src/runtimerender/graphobjects/Qt3DSRenderScene.h
parentfcfe2c787a6429323afe974ee8d9abcf8f2747ee (diff)
Fix studio viewport rendering when scene camera is visible
The runtime contains unused viewport parameters. Remove those and fix the editor by reading the scissor rect from render list instead of render context, which contains wrong scissor rect. Task-number: QT3DS-4103 Change-Id: I8b443c3a5e8d7ac84eb211633cea2afeed6da30b Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/runtimerender/graphobjects/Qt3DSRenderScene.h')
-rw-r--r--src/runtimerender/graphobjects/Qt3DSRenderScene.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/graphobjects/Qt3DSRenderScene.h b/src/runtimerender/graphobjects/Qt3DSRenderScene.h
index 8c4d3fe..00a4591 100644
--- a/src/runtimerender/graphobjects/Qt3DSRenderScene.h
+++ b/src/runtimerender/graphobjects/Qt3DSRenderScene.h
@@ -69,7 +69,7 @@ namespace render {
inRemapper.Remap(m_FirstChild);
}
// returns true if any of the layers were dirty or if this object was dirty
- bool PrepareForRender(const QT3DSVec2 &inViewportDimensions, IQt3DSRenderContext &inContext,
+ bool PrepareForRender(IQt3DSRenderContext &inContext,
const SRenderInstanceId id = nullptr);
void Render(const QT3DSVec2 &inViewportDimensions, IQt3DSRenderContext &inContext,
RenderClearCommand command = ClearIsOptional,