Commit 8fb00484 by Nick Shaforostov Committed by Commit Bot

fix a freeze when returning from fullscreen to maximized (nvidia only)

freeze happens after repetitive enter & exit full screen mode Bug: angleproject:3431 Change-Id: Iea4cd75dc30cd17e53c0a7f1174e39b24d878d4b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1599617Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 0412d9e1
...@@ -55,3 +55,4 @@ Jérôme Duval ...@@ -55,3 +55,4 @@ Jérôme Duval
Руслан Ижбулатов Руслан Ижбулатов
Thomas Miller Thomas Miller
Till Rathmann Till Rathmann
Nick Shaforostov
...@@ -104,6 +104,7 @@ James Ross-Gowan ...@@ -104,6 +104,7 @@ James Ross-Gowan
Andrei Volykhin Andrei Volykhin
Jérôme Duval Jérôme Duval
Till Rathmann Till Rathmann
Nick Shaforostov
Microsoft Corporation Microsoft Corporation
Cooper Partin Cooper Partin
......
...@@ -360,7 +360,7 @@ EGLint SwapChain9::swapRect(DisplayD3D *displayD3D, EGLint x, EGLint y, EGLint w ...@@ -360,7 +360,7 @@ EGLint SwapChain9::swapRect(DisplayD3D *displayD3D, EGLint x, EGLint y, EGLint w
// windows is in the process of entering/exiting fullscreen. This code doesn't seem to have any // windows is in the process of entering/exiting fullscreen. This code doesn't seem to have any
// documentation. The device appears to be ok after emitting this error so simply return a // documentation. The device appears to be ok after emitting this error so simply return a
// failure to swap. // failure to swap.
if (result == static_cast<HRESULT>(0x88760873)) if (result == static_cast<HRESULT>(0x88760873) || result == static_cast<HRESULT>(0x88760872))
{ {
return EGL_BAD_MATCH; return EGL_BAD_MATCH;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment