Index: tests/DeferredCanvasTest.cpp |
=================================================================== |
--- tests/DeferredCanvasTest.cpp (revision 12262) |
+++ tests/DeferredCanvasTest.cpp (working copy) |
@@ -775,6 +775,9 @@ |
#if SK_SUPPORT_GPU |
if (useGpu) { |
GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); |
+ if (NULL == context) { |
+ return; |
+ } |
surface = SkSurface::NewRenderTarget(context, imageSpec); |
alternateSurface = SkSurface::NewRenderTarget(context, imageSpec); |
} else { |