Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
None
-
ff0857541d5d391c7c03cce5893b41dd9b35e7fa (qtdeclarative)
Description
The following code produces a warning because "fragmentShader" is a QByteArray and we occasionally assign an empty string to it. 5.1 did not produce a warning.
import QtQuick 2.0 ShaderEffect { id: root width: 100 height: 100 Timer { id: timer onTriggered: root.tick = !root.tick interval: 1000 repeat: true running: true; } property bool tick onTickChanged: print("tick..") property variant source: ShaderEffectSource { } fragmentShader: tick ? '' : "void main() { gl_FragColor = vec4(1, 0, 0, 1); }" }