qt6-bb10/tests/auto/gui
Alexandru Croitor cd1d114140 Unset qgl_current_fbo when the default FBO is bound
Previously when a new QOpenGLFramebufferObject was bound, the
QOpenGLContextPrivate::qgl_current_fbo member was also updated to point
to this new object.
But if a user called QOpenGLFramebufferObject::bindDefault(),
qgl_current_fbo was not unset, meaning that if the FBO object would be
deleted at some point, qgl_current_fbo would be a dangling pointer.

This patch makes sure to clear the value of qgl_current_fbo when
bindDefault() is called. It is cleared, and not set to point to another
object because the default platform OpenGL FBO is not backed by a
QOpenGLFramebufferObject.

Task-number: QTBUG-56296
Change-Id: I68b53d8b446660accdf5841df3d168ee2f133a90
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2016-10-13 15:38:08 +00:00
..
image QPixmap::load: ensure QBitmap stays a QBitmap even on failure 2016-10-06 16:39:13 +00:00
itemmodels Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
kernel Blacklist modalDialogClosingOneOfTwoModal on OS X 2016-06-04 18:36:04 +00:00
math3d tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
painting Fix illegal memory access on simple image rotates 2016-10-12 18:02:30 +00:00
qopengl Unset qgl_current_fbo when the default FBO is bound 2016-10-13 15:38:08 +00:00
qopenglconfig Fix crash in dumpConfiguration 2016-08-23 17:52:47 +00:00
text Fix crash when doing many text layouts with superscript/subscript 2016-09-29 12:43:19 +00:00
util tst_qdesktopservices: Use regular expression to suppress error message. 2015-10-02 09:34:41 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00