Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index 55c4c0919fa17e8419c889505754d44e7a6f3269..17ad6064f3c09e8d5e7d840bc2c17c1cf8bb0c3e 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -172,8 +172,8 @@ bool GrGpuGL::programUnitTest(int maxStages) { |
for (int i = 0; i < numAttribs; ++i) { |
attribIndices[i] = currAttribIndex++; |
} |
- GrEffectStage* stage = SkNEW(GrEffectStage); |
- stage->setEffect(effect.get(), attribIndices[0], attribIndices[1]); |
+ GrEffectStage* stage = SkNEW_ARGS(GrEffectStage, |
+ (effect.get(), attribIndices[0], attribIndices[1])); |
stages[s] = stage; |
} |
const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dummyTextures[1]; |