Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index fd06bc06608babca279f714d2b093ee13cec55b3..388546d66fcf23c309634bc0f43d5fbb5d7db101 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, |