aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/TransferPixelsTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp
index 339a591660..050080ac69 100644
--- a/tests/TransferPixelsTest.cpp
+++ b/tests/TransferPixelsTest.cpp
@@ -112,6 +112,9 @@ void basic_transfer_test(skiatest::Reporter* reporter, GrContext* context, GrCol
}
sk_sp<GrTexture> tex = resourceProvider->createTexture(desc, SkBudgeted::kNo);
+ if (!tex) {
+ continue;
+ }
//////////////////////////
// transfer full data