summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-03-17 10:56:35 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2022-03-20 19:12:11 +0100
commitb96c2123600fe5e9d5de3e9513be4ecbe51fb900 (patch)
treee09057ec1c85cb5953e7d69fa65d5343d2d608ce /src/widgets/kernel/qwidget.cpp
parentd0f9e593d46065677761c1b6dfc269068e67ac7e (diff)
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 <andy.nichols@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwidget.cpp')
-rw-r--r--src/widgets/kernel/qwidget.cpp2
1 files changed, 0 insertions, 2 deletions
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;