Commit 10e7e501 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: I8a13d00fd03692b3b24dee4813c245d83ea00862 Reviewed-on: https://chromium-review.googlesource.com/1060335Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 01e83581
...@@ -526,6 +526,11 @@ Error Display::initialize() ...@@ -526,6 +526,11 @@ Error Display::initialize()
Error Display::terminate() Error Display::terminate()
{ {
if (!mInitialized)
{
return NoError();
}
ANGLE_TRY(makeCurrent(nullptr, nullptr, nullptr)); ANGLE_TRY(makeCurrent(nullptr, nullptr, nullptr));
mMemoryProgramCache.clear(); 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