Unload frame when not needed.

This commit is contained in:
Filippo Scognamiglio 2018-12-03 19:28:50 +01:00
parent 44a63d4aaa
commit 77dc82a381
2 changed files with 6 additions and 4 deletions

View File

@ -13,8 +13,6 @@ ShaderEffect {
property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
property real shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
visible: screenCurvature != 0
fragmentShader: "
#ifdef GL_ES
precision mediump float;

View File

@ -481,9 +481,13 @@ Item {
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
"}"
NewTerminalFrame {
Loader {
anchors.fill: parent
blending: true
active: screenCurvature !== 0
sourceComponent: NewTerminalFrame {
blending: true
}
}
onStatusChanged: {