From 26bb73c2abc402952131e55850041b055d8a38f7 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Fri, 30 Nov 2012 13:20:44 +0100 Subject: 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 --- src/3rdparty/angle/src/libEGL/Surface.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/3rdparty/angle/src/libEGL') diff --git a/src/3rdparty/angle/src/libEGL/Surface.cpp b/src/3rdparty/angle/src/libEGL/Surface.cpp index 174b40375d..d9e1887e85 100644 --- a/src/3rdparty/angle/src/libEGL/Surface.cpp +++ b/src/3rdparty/angle/src/libEGL/Surface.cpp @@ -217,7 +217,6 @@ bool Surface::resetSwapChain(int backbufferWidth, int backbufferHeight) mDepthStencil = NULL; } - mShareHandle = NULL; HANDLE *pShareHandle = NULL; if (!mWindow && mDisplay->shareHandleSupported()) { -- cgit v1.2.3