Commit 560232a6 by Alexis Hetu Committed by Alexis Hétu

Handle WindowSurface::checkForResize() errors gracefully

WindowSurface::checkForResize() contained an assert which got triggered in some tests. In order to avoid this issue, this cl gracefully handles an invalid window handle. Change-Id: I6bace88370980e94676d4af9de0d88e561175835 Reviewed-on: https://swiftshader-review.googlesource.com/12808Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 642fc923
......@@ -278,8 +278,7 @@ bool WindowSurface::checkForResize()
RECT client;
if(!GetClientRect(window, &client))
{
ASSERT(false);
return false;
return error(EGL_BAD_NATIVE_WINDOW, false);
}
int windowWidth = client.right - client.left;
......
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