Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index a78af9b25196b0794765949e00844ad6e72424ce..b1e233fa3afb3a5af929620544d9066977ff6627 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -952,6 +952,7 @@ |
sk_memset32(storage, expected0, w * h); |
GrSurfaceDesc desc; |
+ desc.fFlags = kRenderTarget_GrSurfaceFlag; // needs to be a rendertarget for readpixels(); |
desc.fOrigin = kDefault_GrSurfaceOrigin; |
desc.fWidth = w; |
desc.fHeight = h; |