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>
This commit is contained in:
parent
656d8a6772
commit
26bb73c2ab
1
src/3rdparty/angle/src/libEGL/Surface.cpp
vendored
1
src/3rdparty/angle/src/libEGL/Surface.cpp
vendored
@ -217,7 +217,6 @@ bool Surface::resetSwapChain(int backbufferWidth, int backbufferHeight)
|
||||
mDepthStencil = NULL;
|
||||
}
|
||||
|
||||
mShareHandle = NULL;
|
||||
HANDLE *pShareHandle = NULL;
|
||||
if (!mWindow && mDisplay->shareHandleSupported())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user