mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	Unload frame when not needed.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user