aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-06-15 13:07:20 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 17:31:35 +0000
commit2f6e0696dba69a56a4184b7643f9561b30b837f9 (patch)
treeeb66383f6530331c9f385849aeb7ea3628490904 /src
parent5540528f81c0a1ad10b8086a1009b799717329f6 (diff)
Fix unused propFlags in GrVkMemory.
Bug: skia: Change-Id: I6f4bf2ff97934c2131d1fb6409fe0541171ec3cc Reviewed-on: https://skia-review.googlesource.com/135260 Commit-Queue: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: Greg Daniel <egdaniel@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/vk/GrVkMemory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkMemory.cpp b/src/gpu/vk/GrVkMemory.cpp
index 942fc3c603..1154490250 100644
--- a/src/gpu/vk/GrVkMemory.cpp
+++ b/src/gpu/vk/GrVkMemory.cpp
@@ -104,8 +104,7 @@ bool GrVkMemory::AllocAndBindImageMemory(const GrVkGpu* gpu,
propFlags = AllocationPropertyFlags::kDedicatedAllocation;
}
- if (!allocator->allocateMemoryForImage(image, AllocationPropertyFlags::kDedicatedAllocation,
- &memory)) {
+ if (!allocator->allocateMemoryForImage(image, propFlags, &memory)) {
return false;
}
allocator->getAllocInfo(memory, alloc);