diff options
author | egdaniel <egdaniel@google.com> | 2016-09-26 12:30:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-26 12:30:46 -0700 |
commit | 804af7d8de27edbc45315d4cce17baffed59a270 (patch) | |
tree | b591f6b46363388600fbba3ca21fbf11a5f9aeff | |
parent | e6bd20e62b827a1f26fa491fc628f015d208350f (diff) |
Revert of Fix bufferIndex check in VulkanWindowContext (patchset #1 id:1 of https://codereview.chromium.org/2363353003/ )
Reason for revert:
Fix not correct.
Original issue's description:
> Fix bufferIndex check in VulkanWindowContext
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2363353003
>
> Committed: https://skia.googlesource.com/skia/+/e6bd20e62b827a1f26fa491fc628f015d208350f
TBR=jvanverth@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review-Url: https://codereview.chromium.org/2370953002
-rw-r--r-- | tools/viewer/sk_app/VulkanWindowContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/viewer/sk_app/VulkanWindowContext.cpp b/tools/viewer/sk_app/VulkanWindowContext.cpp index 91ab054eaf..8d7dceeb8c 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; } |