Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index 9b54dee675a8c1bf7cd200d37ef42065c85fd50c..6fbdaac8673afdab207c44f91e00138e49a538b2 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -126,6 +126,7 @@ void GrVkBuffer::vkRelease(const GrVkGpu* gpu) { |
void GrVkBuffer::vkAbandon() { |
fResource->unrefAndAbandon(); |
+ fResource = nullptr; |
fMapPtr = nullptr; |
VALIDATE(); |
} |