| Index: tests/GLProgramsTest.cpp
|
| diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
|
| index 08222bf32e7dda004f39343542b4ac133ccce5d6..3813945cc2be8ff8a59e6ed303031562fb5a4fe5 100644
|
| --- a/tests/GLProgramsTest.cpp
|
| +++ b/tests/GLProgramsTest.cpp
|
| @@ -298,14 +298,20 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
|
| } else {
|
| primProc = pathProc.get();
|
| }
|
| - if (!this->setupDstReadIfNecessary(pipelineBuilder, &dstCopy, NULL)) {
|
| +
|
| + const GrProcOptInfo& colorPOI = pipelineBuilder.colorProcInfo(primProc);
|
| + const GrProcOptInfo& coveragePOI = pipelineBuilder.coverageProcInfo(primProc);
|
| +
|
| + if (!this->setupDstReadIfNecessary(pipelineBuilder, colorPOI, coveragePOI, &dstCopy,
|
| + NULL)) {
|
| SkDebugf("Couldn't setup dst read texture");
|
| return false;
|
| }
|
|
|
| // create optimized draw state, setup readDst texture if required, and build a descriptor
|
| // and program. ODS creation can fail, so we have to check
|
| - GrPipeline pipeline(pipelineBuilder, primProc, *gpu->caps(), scissor, &dstCopy);
|
| + GrPipeline pipeline(pipelineBuilder, colorPOI, coveragePOI,
|
| + *gpu->caps(), scissor, &dstCopy);
|
| if (pipeline.mustSkip()) {
|
| continue;
|
| }
|
|
|