diff options
author | Antti Määttä <antti.maatta@qt.io> | 2020-05-05 11:01:30 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2020-05-07 08:35:00 +0300 |
commit | fa819899abd4d405da782b34abde8a23cbc2da5a (patch) | |
tree | fc0f51b9300763414f7ff8128a5512c13b694bf6 /src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp | |
parent | fcfe2c787a6429323afe974ee8d9abcf8f2747ee (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/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp')
-rw-r--r-- | src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp b/src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp index 26b0a3c..54cb55f 100644 --- a/src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp +++ b/src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderPreparationData.cpp @@ -1414,7 +1414,7 @@ namespace render { NVRenderRect theViewport(theGraph.GetViewport()); NVRenderRect theScissor(theGraph.GetViewport()); if (theGraph.IsScissorTestEnabled()) - theScissor = m_Renderer.GetContext().GetScissorRect(); + theScissor = theGraph.GetScissor(); bool wasDirty = false; bool wasDataDirty = false; wasDirty = m_Layer.m_Flags.IsDirty(); |