From 7ac6cefd8affc1f3bf963035c4ce4184a6023c5a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 15 Aug 2019 12:13:49 +0200 Subject: QWidget: unbreak QT_NO_OPENGL builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Amends 94d7603d5114eacaf648e0b0d2dcae5e161e0217. The port from QVector to a container of unique_ptr uncovered that QPlatformTextureList isn't defined for QT_NO_OPENGL builds. Some unguarded forward-declarations made the old declaration compile by accident. The new code caught this, so add the #ifdef that had been missing all along. Change-Id: If3b14fc24007b1c917a41ab83343c2e5e65fc643 Reviewed-by: Martin Storsjö Reviewed-by: Mårten Nordheim Reviewed-by: Tasuku Suzuki --- src/widgets/kernel/qwidget_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/kernel') diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h index c851072c11..970f5c0378 100644 --- a/src/widgets/kernel/qwidget_p.h +++ b/src/widgets/kernel/qwidget_p.h @@ -189,7 +189,9 @@ struct QTLWExtra { // ### TODO replace initialScreenIndex with QScreen *, in case the screens change at runtime int initialScreenIndex; // Screen number when passing a QDesktop[Screen]Widget as parent. +#ifndef QT_NO_OPENGL std::vector> widgetTextures; +#endif // *************************** Cross-platform bit fields **************************** uint opacity : 8; -- cgit v1.2.3