Commit ad6e2b6a by Jamie Madill Committed by Commit Bot

D3D11: Fix memory allocation in markLevelDirty.

This would drastically slow down some framebuffer updates. BUG=angleproject:1155 Change-Id: Ibff428c49bd5127a101bce46cc1df355f4542ccf Reviewed-on: https://chromium-review.googlesource.com/649986 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 7d1f5c60
...@@ -381,7 +381,10 @@ void TextureStorage11::markLevelDirty(int mipLevel) ...@@ -381,7 +381,10 @@ void TextureStorage11::markLevelDirty(int mipLevel)
mSwizzleCache[mipLevel] = gl::SwizzleState(); mSwizzleCache[mipLevel] = gl::SwizzleState();
} }
mDropStencilTexture.reset(); if (mDropStencilTexture.valid())
{
mDropStencilTexture.reset();
}
} }
void TextureStorage11::markDirty() void TextureStorage11::markDirty()
......
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