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:
parent
b12b3c6908
commit
e6bd20e62b
@ -412,7 +412,7 @@ VulkanWindowContext::BackbufferInfo* VulkanWindowContext::getAvailableBackbuffer
|
||||
SkASSERT(fBackbuffers);
|
||||
|
||||
++fCurrentBackbufferIndex;
|
||||
if (fCurrentBackbufferIndex > fImageCount) {
|
||||
if (fCurrentBackbufferIndex >= fImageCount) {
|
||||
fCurrentBackbufferIndex = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user