aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GLInterfaceValidation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GLInterfaceValidation.cpp')
-rwxr-xr-xtests/GLInterfaceValidation.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp
index 2be13f026c..69d26d2f28 100755
--- a/tests/GLInterfaceValidation.cpp
+++ b/tests/GLInterfaceValidation.cpp
@@ -51,7 +51,13 @@ static void GLInterfaceValidationTest(skiatest::Reporter* reporter) {
iface.reset(interfaceFactories[i].fFactory());
REPORTER_ASSERT(reporter, NULL != iface.get());
if (iface.get()) {
- REPORTER_ASSERT(reporter, iface.get()->validate());
+ for (GrGLBinding binding = kNone_GrGLBinding;
+ binding <= kLastGrGLBinding;
+ binding = static_cast<GrGLBinding>(binding << 1)) {
+ if (iface.get()->fBindingsExported & binding) {
+ REPORTER_ASSERT(reporter, iface.get()->validate(binding));
+ }
+ }
}
}
}