Commit a836e883 by Geoff Lang

Don't set a null current WGL context in the Surface destructor.

By setting a null current context, there is a brief window where all GL calls will fail. Since there is only one WGL context, just leave in on the unreferenced window until a new window is made current. BUG=angleproject:890 Change-Id: I51eadf23ca61e274f7d174ac5a9e0592bcdadebc Reviewed-on: https://chromium-review.googlesource.com/265483Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Reviewed-by: 's avatarBrandon Jones <bajones@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent b1eee7af
...@@ -33,7 +33,6 @@ WindowSurfaceWGL::~WindowSurfaceWGL() ...@@ -33,7 +33,6 @@ WindowSurfaceWGL::~WindowSurfaceWGL()
mPixelFormat = 0; mPixelFormat = 0;
mShareWGLContext = nullptr; mShareWGLContext = nullptr;
mFunctionsWGL->makeCurrent(mChildDeviceContext, nullptr);
ReleaseDC(mChildWindow, mChildDeviceContext); ReleaseDC(mChildWindow, mChildDeviceContext);
mChildDeviceContext = nullptr; mChildDeviceContext = nullptr;
......
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