aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkResourceProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkResourceProvider.cpp')
-rw-r--r--src/gpu/vk/GrVkResourceProvider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp
index 0f4b2a9f34..cfce75f1ca 100644
--- a/src/gpu/vk/GrVkResourceProvider.cpp
+++ b/src/gpu/vk/GrVkResourceProvider.cpp
@@ -166,10 +166,10 @@ GrVkDescriptorPool* GrVkResourceProvider::findOrCreateCompatibleDescriptorPool(
}
GrVkSampler* GrVkResourceProvider::findOrCreateCompatibleSampler(const GrSamplerParams& params,
- uint32_t mipLevels) {
- GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, mipLevels));
+ uint32_t maxMipLevel) {
+ GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, maxMipLevel));
if (!sampler) {
- sampler = GrVkSampler::Create(fGpu, params, mipLevels);
+ sampler = GrVkSampler::Create(fGpu, params, maxMipLevel);
fSamplers.add(sampler);
}
SkASSERT(sampler);