Index: tools/viewer/sk_app/VulkanWindowContext.cpp |
diff --git a/tools/viewer/sk_app/VulkanWindowContext.cpp b/tools/viewer/sk_app/VulkanWindowContext.cpp |
index 91ab054eaf26adf65f0a27271284e67124036d06..8d7dceeb8c45952456dc8ab2b726b866f7fcabec 100644 |
--- a/tools/viewer/sk_app/VulkanWindowContext.cpp |
+++ b/tools/viewer/sk_app/VulkanWindowContext.cpp |
@@ -412,7 +412,7 @@ |
SkASSERT(fBackbuffers); |
++fCurrentBackbufferIndex; |
- if (fCurrentBackbufferIndex >= fImageCount) { |
+ if (fCurrentBackbufferIndex > fImageCount) { |
fCurrentBackbufferIndex = 0; |
} |