summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@intopalo.com>2015-08-05 09:02:47 +0300
committerAndrew Knight <andrew.knight@intopalo.com>2015-08-13 16:12:02 +0000
commitcea03fa3e3274023f4238de7fa5139275d4737fb (patch)
tree6ab1463d7c3c9c81037cdbfc2b8867c014d096ff /src/3rdparty
parent6c09b9e5530f959eebbe33ba7faa9548d85bd884 (diff)
ANGLE: check for out of date swap chain even when size is empty
This allows the XAML swap chain to work properly, as otherwise it never got a resize after it was passed into ANGLE with an empty size. This is fixed by upstream commit 3799c3014a9e4ba4a3853c014a7127254ec19d50, so no patch is necessary for Qt's local copy. Change-Id: I43b030fa74f6b30c2aa42a36db2031a84eedf60b Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'src/3rdparty')
-rwxr-xr-x[-rw-r--r--]src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp b/src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp
index 4a87488014..84515f4c6c 100644..100755
--- a/src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp
+++ b/src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp
@@ -203,6 +203,7 @@ egl::Error SurfaceD3D::swapRect(EGLint x, EGLint y, EGLint width, EGLint height)
if (width == 0 || height == 0)
{
+ checkForOutOfDateSwapChain();
return egl::Error(EGL_SUCCESS);
}