Change-Id: I1260ce2e0f711dc1140b7030e4941159d9eae03c
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
onSourceChanged: {
if (source != null) {
source.setPaintEnabled(false);
- vertexShader = source.yInverted ? vShaderInvertedY : vShader;
- }
- }
-
- Connections {
- target: source;
- onYInvertedChanged: {
- print("onY " + source.yInverted);
- vertexShader = source.yInverted ? vShaderInvertedY : vShader;
}
}
}
"
+ vertexShader: source && source.isYInverted ? vShaderInvertedY : vShader
+
fragmentShader: "
uniform sampler2D source;
uniform float qt_Opacity;