QQuickWindow: fix resetOpenGLState handling of vertex arrays
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Mon, 28 Jul 2014 19:13:13 +0000 (21:13 +0200)
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Thu, 31 Jul 2014 11:57:31 +0000 (13:57 +0200)
commit658f279171742cc09781407c8214bce635f93b67
tree71cc0b863782df86c83394232597212581ef2979
parentf7d6e2a2a0d69cc475750cff7680f5b19346838c
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>
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow_p.h