diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-06-23 18:39:40 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-06-25 12:41:03 +0000 |
commit | 12c7d018eccb979273fe447c9a0f17b1988ccbf4 (patch) | |
tree | 328325a15d75f10243ef8659fe89a296f14719da /src/qml/types/qqmlitemselectionmodel.qdoc | |
parent | c3d26e75b0a9cc9848ebe316ee88b29655a6564f (diff) |
Fix missing images when alpha and shader effects are involved
Once we hit removedFromAtlas() and the glCopyTexImage2D() path, bad things
tend to happen with OpenGL ES, both on certain embedded devices (Beaglebone, RPi)
and ANGLE.
ANGLE just rejects GL_BGRA_EXT with INVALID_ENUM. So if it fails, just try
with GL_RGBA. The BGRA extensions do not mention glCopyTexImage2D in any form
and in plain GLES (any version) BGRA does not exist. So rejecting it may be valid,
depending on how one reads the specs.
Same problem on Beaglebone, where the call with BGRA fails as INVALID_OPERATION.
The RPi 1 and 2 fails in a different way: the temporary framebuffer is not complete
because BGRA textures are not supported as color attachments. So our only choice
here is to do what we do for some Android devices already: ignore BGRA support.
Task-number: QTBUG-46806
Change-Id: I89b3b38bf7f8883c39509606ec5ae525f131292b
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/qml/types/qqmlitemselectionmodel.qdoc')
0 files changed, 0 insertions, 0 deletions