diff options
author | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-06-26 12:45:35 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2015-06-26 10:55:40 +0000 |
commit | 2d1189d9f281f1f78abed1a47939a4e2b5e747d7 (patch) | |
tree | 86d8b0beae9a90ce2f43aa77edc1e73fde4b2427 /examples/widgets/tutorials | |
parent | 5757b8c516ad0d613739b222687583bca914a981 (diff) |
lance: Ensure that OpenGL FBO is cleared before being used as surface
Merely filling with Qt::transparent is not enough, as the default blend
mode of QPainter is QPainter::CompositionMode_SourceOver, where the alpha
of the source is used to blend the pixel on top of the destination. The
destination in the case of an FBO may contain garbage, and we end up with
the same garbage as the alpha is 0.
This was evident when running the ellipses and porter_duff/porter_duff2
tests on OS X. These tests can now be un-blacklisted.
Change-Id: I315fa764fa29fb3a06e38945a738a6feadf4502d
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'examples/widgets/tutorials')
0 files changed, 0 insertions, 0 deletions