aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-04-11 14:40:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-11 14:40:50 -0700
commitfda880710c28a1b0ff0c8c88f90a7659a7ce553f (patch)
treefda7d308701f484a5d58dd7ac12509a1ef61faca /dm
parentdc0fcd41e75682a8bfd5e285d684461475226330 (diff)
Convert some unit tests from running on GL contexts to running on all contexts
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index fd06bc0660..388546d66f 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1442,7 +1442,7 @@ void RunWithGPUTestContexts(GrContextTestFn* test, GrContextTypeFilterFn* contex
for (int typeInt = 0; typeInt < GrContextFactory::kContextTypeCnt; ++typeInt) {
GrContextFactory::ContextType contextType = (GrContextFactory::ContextType) typeInt;
ContextInfo ctxInfo = factory->getContextInfo(contextType);
- if (!(*contextTypeFilter)(contextType)) {
+ if (contextTypeFilter && !(*contextTypeFilter)(contextType)) {
continue;
}
// Use "native" instead of explicitly trying OpenGL and OpenGL ES. Do not use GLES on,