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>
This commit is contained in:
Andrew Knight 2015-08-05 09:02:47 +03:00
parent 6c09b9e553
commit cea03fa3e3

1
src/3rdparty/angle/src/libANGLE/renderer/d3d/SurfaceD3D.cpp vendored Normal file → Executable file
View File

@ -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);
}