From b96c2123600fe5e9d5de3e9513be4ecbe51fb900 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 17 Mar 2022 10:56:35 +0100 Subject: Remove a now-unneeded QT_NO_OPENGL ifdef This is from a fix unrelated to the recent rhi-based composition work, which means it still had to enclose the block in an ifdef due to the variables being only present in OpenGL-enabled builds. Now with the other patches in place, the variables are no longer conditional, and the similar ifndef QT_NO_OPENGL checks are already gone pretty much everywhere so the ifdef is not needed here either. Change-Id: I497c7a4fad7cd7d8fc1a479e7032de3e2cbb3b32 Reviewed-by: Andy Nichols --- src/widgets/kernel/qwidget.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/widgets/kernel/qwidget.cpp') diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 97a02899f8..3926436b07 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -11051,12 +11051,10 @@ void QWidgetPrivate::update(T r) { Q_Q(QWidget); -#ifndef QT_NO_OPENGL if (renderToTexture && !q->isVisible()) { renderToTextureReallyDirty = 1; return; } -#endif if (!q->isVisible() || !q->updatesEnabled()) return; -- cgit v1.2.3