summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxrect_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxrect_p.h')
-rw-r--r--src/declarative/fx/qfxrect_p.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxrect_p.h b/src/declarative/fx/qfxrect_p.h
index d68eb4e..f662fac 100644
--- a/src/declarative/fx/qfxrect_p.h
+++ b/src/declarative/fx/qfxrect_p.h
@@ -68,8 +68,11 @@ class QFxRectPrivate : public QFxItemPrivate
Q_DECLARE_PUBLIC(QFxRect)
public:
- QFxRectPrivate()
- : rectTexture(0), gradient(0), pen(0), radius(0)
+ QFxRectPrivate() :
+#if defined(QFX_RENDER_OPENGL)
+ rectTexture(0),
+#endif //QFX_RENDER_OPENGL
+ gradient(0), pen(0), radius(0)
{
}