aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-05-09 08:53:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-09 08:53:59 -0700
commit97a23369f870cc9a52ebe94c5d7d7bf443c9716d (patch)
treef80182afa5681ff3977c6655e1c8ebb3c922c233 /src
parent796c5bb4655a511553970e111c96d90963fb9ae4 (diff)
Reset layout to undefined when we realloc VkTexture memory
Diffstat (limited to 'src')
-rw-r--r--src/gpu/vk/GrVkTexture.cpp1
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;