summaryrefslogtreecommitdiffstats
path: root/src/angle
diff options
context:
space:
mode:
authorZeno Albisser <zeno@webkit.org>2012-11-30 13:37:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 23:57:22 +0100
commit656d8a67723be480878b7b9bba4fd5e9bd2c9270 (patch)
treeca01bd562bf7f9095cbf18a804d25b499682f86a /src/angle
parent7fce92467421b7d3a15c34a2cbe0b32903fa1d8d (diff)
ANGLE Patch file: Do not reset the share handle when resetting the swap chain.
Change-Id: I7ddc0f31b342ba40d4e14a99afdf237cb37d7ace Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/angle')
-rw-r--r--src/angle/patches/0006-ANGLE-Do-not-reset-the-share-handle-when-resetting-t.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/angle/patches/0006-ANGLE-Do-not-reset-the-share-handle-when-resetting-t.patch b/src/angle/patches/0006-ANGLE-Do-not-reset-the-share-handle-when-resetting-t.patch
new file mode 100644
index 0000000000..7d4c7af3f8
--- /dev/null
+++ b/src/angle/patches/0006-ANGLE-Do-not-reset-the-share-handle-when-resetting-t.patch
@@ -0,0 +1,32 @@
+From 7a2483c26eebf1c06924143108186eae59d85d98 Mon Sep 17 00:00:00 2001
+From: Zeno Albisser <zeno@webkit.org>
+Date: Fri, 30 Nov 2012 13:20:44 +0100
+Subject: [PATCH] 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
+---
+ src/3rdparty/angle/src/libEGL/Surface.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/3rdparty/angle/src/libEGL/Surface.cpp b/src/3rdparty/angle/src/libEGL/Surface.cpp
+index 174b403..d9e1887 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())
+ {
+--
+1.7.9.5
+