ANGLE: Do not reset the share handle when resetting the swap chain.
authorZeno Albisser <zeno@webkit.org>
Fri, 30 Nov 2012 12:20:44 +0000 (13:20 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 Nov 2012 22:57:37 +0000 (23:57 +0100)
commit26bb73c2abc402952131e55850041b055d8a38f7
treea0f0133cab8e7f5f4b1f57499d4de021850f8dd3
parent656d8a67723be480878b7b9bba4fd5e9bd2c9270
ANGLE: Do not reset the share handle when resetting the swap chain.

This change only affects the ANGLE_surface_d3d_texture_2d_share_handle
extension. The patch is necessary to have WebGL running in Qt/WebKit2.

If the share handle is reset, we are loosing the reference to the
EGLSurface and cannot actually reuse it in a different context anymore.

Change-Id: I0138432dd8ff60ea57e7e591cfa2f8db1d324f53
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/3rdparty/angle/src/libEGL/Surface.cpp