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
This commit is contained in:
bsalomon@google.com 2012-02-10 20:25:36 +00:00
parent 89ec61e33d
commit b447d21577
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ enum GrGLBinding {
kES2_GrGLBinding = 0x02,
// for iteration of GrGLBindings
kFirstGrGLBinding = kDesktop_GrGLBinding,
kLastGrGLBinding = kES2_GrGLBinding
};

View File

@ -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) {