I have an application that changes the content of vertexShaderCode and fragmentShaderCode of the QML type ShaderProgram. Instead of recompiling and applying the new shader nothing happens. The application still uses the old shader code and continues to render. I can see that the new shader is loaded because onVertexShaderCodeChanged and onFragmentShaderCodeChanged both get called, but I can also see that the shader is not compiled because even if I provide faulty shader code I get no error message. I used loadSource() to update the shader code based on a changeable QRC URL modified from C++.
I am under the impression that updating the code should cause ShaderProgram to recompile and apply the new shader. If necessary I could see if I could provide a small example for this behavior.
|For Gerrit Dashboard: QTBUG-53527|
|159857,2||Fix simple-shaders-qml manual test||5.7.0||qt/qt3d||Status: MERGED||+2||0|
|159858,2||Fix dynamic shader code updates||5.7.0||qt/qt3d||Status: MERGED||+2||0|
|160074,1||Fix simple-shaders-qml manual test||5.7||qt/qt3d||Status: ABANDONED||0||0|
|160075,1||Fix dynamic shader code updates||5.7||qt/qt3d||Status: ABANDONED||0||0|