Commit c1651618 by Geoff Lang Committed by Commit Bot

Don't double-terminate a display.

Some dEQP tests call eglTerminate twice on the same display and cause crashes. BUG=angleproject:2546 Change-Id: I3118e07aec19a28ad2b76fc2705be5b0bea37857 Reviewed-on: https://chromium-review.googlesource.com/1066467Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 22a5f5f0
......@@ -533,6 +533,11 @@ Error Display::initialize()
Error Display::terminate()
{
if (!mInitialized)
{
return NoError();
}
ANGLE_TRY(makeCurrent(nullptr, nullptr, nullptr));
mMemoryProgramCache.clear();
......
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