diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h index 41e36ee6a5..99cba0e20f 100644 --- a/src/widgets/kernel/qwidget_p.h +++ b/src/widgets/kernel/qwidget_p.h @@ -628,7 +628,7 @@ public: #ifndef QT_NO_OPENGL virtual GLuint textureId() const { return 0; } - void setRenderToTexture() { renderToTexture = true; textureChildSeen = true; } + void setRenderToTexture() { renderToTexture = true; setTextureChildSeen(); } void setTextureChildSeen() { Q_Q(QWidget);