Commit 6fb8ba4e by Jamie Madill Committed by Commit Bot

DisplayD3D: Don't release bound texture in restoreLostDevice.

If we are restoring a lost device we should have deleted all Contexts. This would have freed any bound textures. Remove the release call and replace it with an ASSERT. One usage of the Proxy Context remains: Display::destroyImage. Bug: angleproject:2714 Change-Id: Id3e4b7b0341092a8fae37705a6bb171167196fe2 Reviewed-on: https://chromium-review.googlesource.com/1137880 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent e62489f3
......@@ -252,10 +252,7 @@ egl::Error DisplayD3D::restoreLostDevice(const egl::Display *display)
// Release surface resources to make the Reset() succeed
for (egl::Surface *surface : mState.surfaceSet)
{
if (surface->getBoundTexture())
{
ANGLE_TRY(surface->releaseTexImage(display->getProxyContext(), EGL_BACK_BUFFER));
}
ASSERT(!surface->getBoundTexture());
SurfaceD3D *surfaceD3D = GetImplAs<SurfaceD3D>(surface);
surfaceD3D->releaseSwapChain();
}
......
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