Do not pass texture ownership to scenegraph in WaylandSurfaceItem
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Fri, 17 Aug 2012 09:16:44 +0000 (12:16 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Fri, 17 Aug 2012 10:37:56 +0000 (12:37 +0200)
commit882b5abd60dd254e45fc714f189fc06612ee0184
treec2f915366ef63a7c653676efa9d65b4ccaead04d
parentbd28cd9a9e0f9733bd5bf358466e5e0ed0a05495
Do not pass texture ownership to scenegraph in WaylandSurfaceItem

Doing so breaks many simple cases of GL rendering where there is one
attach followed by multiple damages. Letting SG destroy the GL texture
when deleting the old QSGTexture instance is wrong and results in
showing nothing but the very first frame on the screen.

Also, SurfaceBuffer does delete the GL texture upon destruction so the
ownership should stay with it.

This reverts c1ee015bab06e82bccbb723b522c185a8188cab5, not sure why
the change was introduced in the first place.

Change-Id: Ie91574daadeeb7214a55f8e32c10d0a316c0e2c8
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/compositor/compositor_api/waylandsurfaceitem.cpp