Commit f345cdf3 by Corentin Wallez Committed by Commit Bot

DisplayGLX: Close the X display if we own it.

BUG=chromium:834269 Change-Id: Ia49f80f4c057ad467428a13e8cd4ca54ad48d5c4 Reviewed-on: https://chromium-review.googlesource.com/1058084Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent e35831d3
......@@ -330,6 +330,11 @@ void DisplayGLX::terminate()
mGLX.terminate();
SafeDelete(mFunctionsGL);
if (mUsesNewXDisplay)
{
XCloseDisplay(mXDisplay);
}
}
egl::Error DisplayGLX::makeCurrent(egl::Surface *drawSurface,
......
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