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