Commit 9fdc2c67 by Geoff Lang Committed by Commit Bot

Fix incorrect assertion in SwapChain11.cpp.

BUG=angleproject:1144 Change-Id: I6186381d1aad13bbb07af47b3cf94d6ec7cbb566 Reviewed-on: https://chromium-review.googlesource.com/405693Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 032e3702
......@@ -207,17 +207,16 @@ EGLint SwapChain11::resetOffscreenColorBuffer(int backbufferWidth, int backbuffe
mOffscreenTexture = d3d11::DynamicCastComObject<ID3D11Texture2D>(tempResource11);
SafeRelease(tempResource11);
ASSERT(SUCCEEDED(mOffscreenTexture != nullptr));
}
else if (mD3DTexture != nullptr)
{
mOffscreenTexture = d3d11::DynamicCastComObject<ID3D11Texture2D>(mD3DTexture);
ASSERT(mOffscreenTexture != nullptr);
}
else
{
UNREACHABLE();
}
ASSERT(mOffscreenTexture != nullptr);
}
else
{
......
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