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:
parent
89ec61e33d
commit
b447d21577
@ -31,6 +31,7 @@ enum GrGLBinding {
|
||||
kES2_GrGLBinding = 0x02,
|
||||
|
||||
// for iteration of GrGLBindings
|
||||
kFirstGrGLBinding = kDesktop_GrGLBinding,
|
||||
kLastGrGLBinding = kES2_GrGLBinding
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user