aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkUtil.cpp')
-rw-r--r--src/gpu/vk/GrVkUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkUtil.cpp b/src/gpu/vk/GrVkUtil.cpp
index cb0046e58c..12db4c111e 100644
--- a/src/gpu/vk/GrVkUtil.cpp
+++ b/src/gpu/vk/GrVkUtil.cpp
@@ -263,8 +263,8 @@ bool GrVkFormatIsSRGB(VkFormat format, VkFormat* linearFormat) {
}
bool GrSampleCountToVkSampleCount(uint32_t samples, VkSampleCountFlagBits* vkSamples) {
+ SkASSERT(samples >= 1);
switch (samples) {
- case 0: // fall through
case 1:
*vkSamples = VK_SAMPLE_COUNT_1_BIT;
return true;