diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-10 20:25:36 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-10 20:25:36 +0000 |
commit | b447d215772a5984dc776a8dc058e0711d566c04 (patch) | |
tree | be5143fed4eb226f43dbc52177008f486189c329 | |
parent | 89ec61e33daa9cbac200d38f7c5bb8b88046999a (diff) |
Fix dumb error of starting loop with 0 instead of 1 that uses shift to increment.
git-svn-id: http://skia.googlecode.com/svn/trunk@3163 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/gpu/GrGLInterface.h | 1 | ||||
-rwxr-xr-x | tests/GLInterfaceValidation.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/gpu/GrGLInterface.h b/include/gpu/GrGLInterface.h index fa284d4a97..1b8b3be979 100644 --- a/include/gpu/GrGLInterface.h +++ b/include/gpu/GrGLInterface.h @@ -31,6 +31,7 @@ enum GrGLBinding { kES2_GrGLBinding = 0x02, // for iteration of GrGLBindings + kFirstGrGLBinding = kDesktop_GrGLBinding, kLastGrGLBinding = kES2_GrGLBinding }; diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp index 69d26d2f28..2557c4c71c 100755 --- a/tests/GLInterfaceValidation.cpp +++ b/tests/GLInterfaceValidation.cpp @@ -51,7 +51,7 @@ static void GLInterfaceValidationTest(skiatest::Reporter* reporter) { iface.reset(interfaceFactories[i].fFactory()); REPORTER_ASSERT(reporter, NULL != iface.get()); if (iface.get()) { - for (GrGLBinding binding = kNone_GrGLBinding; + for (GrGLBinding binding = kFirstGrGLBinding; binding <= kLastGrGLBinding; binding = static_cast<GrGLBinding>(binding << 1)) { if (iface.get()->fBindingsExported & binding) { |