aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-07-19 16:49:28 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-19 21:45:47 +0000
commitf3316224b95e4d3325972552df0d1c046ae73225 (patch)
tree010600642971c5c869390165c173cedf7c48e8b6 /src/gpu/gl
parent81e7bf8d6d338d944f3c5075b14c21580398aeb6 (diff)
Fixes from sample count change
Re blacklist imagination msaa on Vulkan and fix i->1 bug in GL Bug: skia: Change-Id: I8045565b2064d2ee037ab43b167e6d5d3a59268e Reviewed-on: https://skia-review.googlesource.com/24780 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 766b438d2b..81311a4fba 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -2138,7 +2138,7 @@ void GrGLCaps::initConfigTable(const GrContextOptions& contextOptions,
static const int kDefaultSamples[] = {0,1,2,4,8};
int count = SK_ARRAY_COUNT(kDefaultSamples);
for (; count > 0; --count) {
- if (kDefaultSamples[count-i] <= fMaxColorSampleCount) {
+ if (kDefaultSamples[count-1] <= fMaxColorSampleCount) {
break;
}
}