OSDN Git Service

Handle WindowSurface::checkForResize() errors gracefully
authorAlexis Hetu <sugoi@google.com>
Fri, 29 Sep 2017 17:13:14 +0000 (13:13 -0400)
committerAlexis Hétu <sugoi@google.com>
Fri, 29 Sep 2017 18:33:38 +0000 (18:33 +0000)
commit560232a6ccf18d08aadb64cf2fd3349f789813ff
tree9b4d141a228baaa44aa4854cfaf632580c1e3aa6
parent642fc923f8b7ef7bb0012583ca07d1e5971b7184
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/12808
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/OpenGL/libEGL/Surface.cpp