summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-09-05 11:51:50 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-09-07 07:25:37 +0000
commit3baa9aa3cd100d868313ce2920c35908abd172c4 (patch)
treef6140999b297a077d034513e0552a2edb38c9630 /src/gui
parent295cd87c6d4cb6c9c1222fc565031377e5f33704 (diff)
macOS: Clear NSOpenGLContex's drawable when using offscreen surfaces
Otherwise the user might accidentally render to the previously active window, if not explicitly using an FBO. This will have an performance impact if doing makeCurrent on a real window and an offscreen window back and forth with the same context, but that's not really a common or recommended use of QOffscreenSurface, as you can create FBOs with a normal window current as well. The use case of QOffscreenSurface is when a real window is not available. Change-Id: If93d04f82564523e15d5970429afea34c5cd31fe Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions