aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickframebufferobject.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-11-12 10:57:15 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-11-14 15:33:37 +0100
commitb6b1d5899415fef3231120c08c56a1dc2e246940 (patch)
tree7bf4db6ba359bf76d968fdd58d5b63a5b997b782 /src/quick/items/qquickframebufferobject.h
parent0a649f25813b8c2ecf679db106cb8ec175b9145a (diff)
Make QQuickFbo work with the OpenGL backend of QRhi
So no matter if Quick goes directly to OpenGL, or via QRhi, QQuickFramebufferObject will still work. Also fix up the fboitem example to use a ShaderEffect that works with both rendering paths. With graphics APIs other than OpenGL the item will be empty, as QQuickFbo is not something we can support there. Task-number: QTBUG-79222 Change-Id: I52177d3a75f619f7075a2fc829573c17031eded1 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickframebufferobject.h')
-rw-r--r--src/quick/items/qquickframebufferobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquickframebufferobject.h b/src/quick/items/qquickframebufferobject.h
index db143e48cf..e26c8293a6 100644
--- a/src/quick/items/qquickframebufferobject.h
+++ b/src/quick/items/qquickframebufferobject.h
@@ -48,7 +48,8 @@ class QOpenGLFramebufferObject;
class QQuickFramebufferObjectPrivate;
class QSGFramebufferObjectNode;
-// ### Qt 6: To be removed. To be seen if an alternative will need to be introduced.
+// ### Qt 6: Consider what to do here. QQuickFbo supports both direct OpenGL and
+// OpenGL via QRhi, but it cannot function when running with another rhi backend.
class Q_QUICK_EXPORT QQuickFramebufferObject : public QQuickItem
{