Commit e6bcdd24 by Jamie Madill

Fix a bug in EGLPresentPathD3D11Test

This test was releasing a resource created with a queried device after it released the D3D11 device. It is problematic because the error was not caught by the swarming tests on the trybots, but did show up on the Intel bot because it was not a swarming test. BUG=589851 BUG=angleproject:1219 Change-Id: I7383640df9794aaf0e32e0a7c276ae3b22232050 Reviewed-on: https://chromium-review.googlesource.com/330001Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 518b9fab
......@@ -151,6 +151,8 @@ class EGLPresentPathD3D11 : public testing::TestWithParam<PlatformParameters>
void TearDown() override
{
SafeRelease(mOffscreenSurfaceD3D11Texture);
if (mDisplay != EGL_NO_DISPLAY)
{
eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
......@@ -173,8 +175,6 @@ class EGLPresentPathD3D11 : public testing::TestWithParam<PlatformParameters>
mOSWindow->destroy();
SafeDelete(mOSWindow);
SafeRelease(mOffscreenSurfaceD3D11Texture);
}
void drawQuadUsingGL()
......
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