| Index: tests/SurfaceTest.cpp
|
| diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp
|
| index a11d60f9633d5234f8b89bcb66a05329ed8955dd..dbf5fb9ce31be344486eeeb22b926d79a90432b5 100644
|
| --- a/tests/SurfaceTest.cpp
|
| +++ b/tests/SurfaceTest.cpp
|
| @@ -251,6 +251,9 @@ static void test_imagepeek(skiatest::Reporter* reporter, GrContextFactory* facto
|
| GrContext* ctx = NULL;
|
| #if SK_SUPPORT_GPU
|
| ctx = factory->get(GrContextFactory::kNative_GLContextType);
|
| + if (!ctx) {
|
| + return;
|
| + }
|
| #endif
|
|
|
| for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {
|
|
|