Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 7b73fdc510dd36306c1baf0518806eb7b19a8a72..aa8359d5e55957e3951fcaad1eb55de515f7139a 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -384,12 +384,11 @@ |
// create optimized draw state, setup readDst texture if required, and build a descriptor |
// and program. ODS creation can fail, so we have to check |
- GrOptDrawState ods(ds, *gpu->caps(), scissor, &dstCopy, drawType); |
+ GrOptDrawState ods(ds, gpu, scissor, &dstCopy, drawType); |
if (ods.mustSkip()) { |
continue; |
} |
- ods.finalize(gpu); |
- SkAutoTUnref<GrGLProgram> program(GrGLProgramBuilder::CreateProgram(ods, gpu)); |
+ SkAutoTUnref<GrGLProgram> program(GrGLProgramBuilder::CreateProgram(ods, drawType, gpu)); |
if (NULL == program.get()) { |
SkDebugf("Failed to create program!"); |
return false; |