aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-09 20:47:34 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-09 20:47:34 +0000
commit72b4fcb587f86bff82f8ccf687376a932a08b1e6 (patch)
tree7d7c0a726ec13d6549da91691d5ccb59cf8b6686
parent822968fc66f2d88cb3e600924c168d4278ebcbd2 (diff)
Fix unused var warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1285 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gpu/src/GrGLProgram.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/src/GrGLProgram.cpp b/gpu/src/GrGLProgram.cpp
index f0245afe12..abed043735 100644
--- a/gpu/src/GrGLProgram.cpp
+++ b/gpu/src/GrGLProgram.cpp
@@ -446,8 +446,8 @@ bool GrGLProgram::bindAttribsAndLinkProgram(GrStringBuilder texCoordAttrNames[],
}
for (int s = 0; s < GrDrawTarget::kNumStages; ++s) {
- const ProgramDesc::StageDesc& desc = fProgramDesc.fStages[s];
- if (kSetAsAttribute == programData->fUniLocations.fStages[s].fTextureMatrixUni) {
+ const StageUniLocations& unis = programData->fUniLocations.fStages[s];
+ if (kSetAsAttribute == unis.fTextureMatrixUni) {
GrStringBuilder matName;
tex_matrix_name(s, &matName);
GR_GL(BindAttribLocation(progID,