diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-07-28 21:13:13 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-07-31 13:57:31 +0200 |
commit | 658f279171742cc09781407c8214bce635f93b67 (patch) | |
tree | 71cc0b863782df86c83394232597212581ef2979 /src/quick/items/qquickwindow_p.h | |
parent | f7d6e2a2a0d69cc475750cff7680f5b19346838c (diff) |
QQuickWindow: fix resetOpenGLState handling of vertex arrays
In the core profile it's forbidden to set vertex attributes
(via glVertexAttribPointer and similar) when there's no VAO bound.
Similarly, if there's a VAO bound when calling resetOpenGLState,
then we need to unbind it or those operations will affect its status.
Change-Id: Id7db028ddde9f9429f5a210b8b3d1468888dbce4
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r-- | src/quick/items/qquickwindow_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 66202aec5c..8f0696914e 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -94,6 +94,8 @@ class QTouchEvent; class QQuickWindowRenderLoop; class QQuickWindowIncubationController; +class QOpenGLVertexArrayObjectHelper; + class Q_QUICK_PRIVATE_EXPORT QQuickWindowPrivate : public QWindowPrivate { public: @@ -233,6 +235,8 @@ public: uint renderTargetId; QSize renderTargetSize; + QOpenGLVertexArrayObjectHelper *vaoHelper; + // Keeps track of which touch point (int) was last accepted by which item QHash<int, QQuickItem *> itemForTouchPointId; |