Index: tests/BitmapCopyTest.cpp |
diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp |
index e47a631816499784d88a996a6400410d83e58adf..58341dc979dc4b818633b293d79fc69069d8e1b9 100644 |
--- a/tests/BitmapCopyTest.cpp |
+++ b/tests/BitmapCopyTest.cpp |
@@ -684,6 +684,10 @@ DEF_GPUTEST(BitmapCopy_Texture, reporter, factory) { |
SkAutoTUnref<GrTexture> texture( |
ctx->textureProvider()->createTexture(desc, false, srcData, 0)); |
+ if (!texture) { |
+ continue; |
+ } |
+ |
SkBitmap srcBmp; |
GrWrapTextureInBitmap(texture, 2, 2, false, &srcBmp); |
if (srcBmp.isNull()) { |