Commit 7c95d081 by jason Committed by Commit Bot

Fix crash during resizes when using the OpenGL renderer on Windows

Partial revert of f0607639 Address test failures Guard context reset in DisplayWGL::makeCurrent with !mUseDXGISwapChains BUG=chromium:1004117 Change-Id: I9b6eb7bc83a6e4b1a21fa0703404e41c6090730d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1913314Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent b61069ce
...@@ -706,7 +706,7 @@ egl::Error DisplayWGL::makeCurrent(egl::Surface *drawSurface, ...@@ -706,7 +706,7 @@ egl::Error DisplayWGL::makeCurrent(egl::Surface *drawSurface,
ContextWGL *contextWGL = GetImplAs<ContextWGL>(context); ContextWGL *contextWGL = GetImplAs<ContextWGL>(context);
newContext = contextWGL->getContext(); newContext = contextWGL->getContext();
} }
else else if (!mUseDXGISwapChains)
{ {
newContext = 0; newContext = 0;
} }
......
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