Fix bad allocator access in r4616
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 16 Jul 2012 14:16:22 +0000 (14:16 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 16 Jul 2012 14:16:22 +0000 (14:16 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4619 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkLightingImageFilter.cpp

index 1e15155..28aa937 100644 (file)
@@ -1242,7 +1242,6 @@ void GrGLLight::emitLightColor(const GrGLShaderBuilder* builder,
 }
 
 void GrGLLight::setupVariables(GrGLShaderBuilder* builder, int stage) {
-    const GrGLShaderVar& colorVar = builder->getUniformVariable(fColorUni);
     fColorUni = builder->addUniform(GrGLShaderBuilder::kFragment_ShaderType,
                                     kVec3f_GrSLType, "uLightColor", stage);
 }