Index: tests/ReadPixelsTest.cpp |
diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp |
index 63cc4d0c86ac6f473815d0a41fd9872cf9b8e8bd..a4683b06abf4058d7d2f7bdb890111310460a09c 100644 |
--- a/tests/ReadPixelsTest.cpp |
+++ b/tests/ReadPixelsTest.cpp |
@@ -318,8 +318,7 @@ DEF_GPUTEST(ReadPixels, reporter, factory) { |
desc.fHeight = DEV_H; |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fOrigin = 1 == dtype ? kBottomLeft_GrSurfaceOrigin : kTopLeft_GrSurfaceOrigin; |
- SkAutoTUnref<GrTexture> texture( |
- context->refScratchTexture(desc, GrContext::kExact_ScratchTexMatch)); |
+ SkAutoTUnref<GrTexture> texture(context->createTexture(desc, false)); |
surface.reset(SkSurface::NewRenderTargetDirect(texture->asRenderTarget())); |
#else |
continue; |