diff options
author | egdaniel <egdaniel@google.com> | 2016-05-09 08:53:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-09 08:53:59 -0700 |
commit | 97a23369f870cc9a52ebe94c5d7d7bf443c9716d (patch) | |
tree | f80182afa5681ff3977c6655e1c8ebb3c922c233 /src | |
parent | 796c5bb4655a511553970e111c96d90963fb9ae4 (diff) |
Reset layout to undefined when we realloc VkTexture memory
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1958123002
Review-Url: https://codereview.chromium.org/1958123002
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/vk/GrVkTexture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkTexture.cpp b/src/gpu/vk/GrVkTexture.cpp index 1e1e1b2fa5..8278d27437 100644 --- a/src/gpu/vk/GrVkTexture.cpp +++ b/src/gpu/vk/GrVkTexture.cpp @@ -212,6 +212,7 @@ bool GrVkTexture::reallocForMipmap(const GrVkGpu* gpu, uint32_t mipLevels) { oldView->unref(gpu); fResource = imageResource; fTextureView = textureView; + fCurrentLayout = VK_IMAGE_LAYOUT_UNDEFINED; this->texturePriv().setMaxMipMapLevel(mipLevels); return true; |