aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/graph/linenode.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2016-10-13 17:21:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2016-10-13 17:21:48 +0200
commit90fa3414156522ef89f9ebe8cefd6dad303ce06c (patch)
tree65ba250895722795ce3d14fb9b4341953ffd1733 /examples/quick/scenegraph/graph/linenode.cpp
parent2a999f870e791d99c5c0463a11be05fc5a14dfcc (diff)
parenta05fec277d0a122e03bb6c7756777729df50b1f2 (diff)
Merge remote-tracking branch 'origin/dev' into wip/scenegraphng
Diffstat (limited to 'examples/quick/scenegraph/graph/linenode.cpp')
-rw-r--r--examples/quick/scenegraph/graph/linenode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/graph/linenode.cpp b/examples/quick/scenegraph/graph/linenode.cpp
index 473be7da17..992e2d44c9 100644
--- a/examples/quick/scenegraph/graph/linenode.cpp
+++ b/examples/quick/scenegraph/graph/linenode.cpp
@@ -56,7 +56,7 @@ class LineShader : public QSGSimpleMaterialShader<LineMaterial>
QSG_DECLARE_SIMPLE_SHADER(LineShader, LineMaterial)
public:
- LineShader() {
+ LineShader() : id_color(-1), id_spread(-1), id_size(-1) {
setShaderSourceFile(QOpenGLShader::Vertex, ":/scenegraph/graph/shaders/line.vsh");
setShaderSourceFile(QOpenGLShader::Fragment, ":/scenegraph/graph/shaders/line.fsh");
}