projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796c5bb
)
Reset layout to undefined when we realloc VkTexture memory
author
egdaniel
<egdaniel@google.com>
Mon, 9 May 2016 15:53:59 +0000
(08:53 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Mon, 9 May 2016 15:53:59 +0000
(08:53 -0700)
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
src/gpu/vk/GrVkTexture.cpp
patch
|
blob
|
history
diff --git
a/src/gpu/vk/GrVkTexture.cpp
b/src/gpu/vk/GrVkTexture.cpp
index
1e1e1b2
..
8278d27
100644
(file)
--- 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;