Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index a0d642741e1ff23b3bcacb313fd2c5f2d30e6a2d..d8ce3fdc9ff4d312b7ef5292692f10ddca199ce3 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -332,7 +332,9 @@ bool GrGpuGL::programUnitTest(int maxStages) { |
return false; |
} |
- SkAutoTUnref<GrOptDrawState> optState(this->getDrawState().createOptState(*this->caps())); |
+ SkAutoTUnref<GrOptDrawState> optState(GrOptDrawState::Create(this->getDrawState(), |
+ *this->caps(), |
+ drawType)); |
SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this, |
*optState.get(), |
pdesc, |