Fix bufferIndex check in VulkanWindowContext

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2363353003

Review-Url: https://codereview.chromium.org/2363353003
This commit is contained in:
egdaniel 2016-09-26 12:20:56 -07:00 committed by Commit bot
parent b12b3c6908
commit e6bd20e62b

View File

@ -412,7 +412,7 @@ VulkanWindowContext::BackbufferInfo* VulkanWindowContext::getAvailableBackbuffer
SkASSERT(fBackbuffers);
++fCurrentBackbufferIndex;
if (fCurrentBackbufferIndex > fImageCount) {
if (fCurrentBackbufferIndex >= fImageCount) {
fCurrentBackbufferIndex = 0;
}