Remove static from template specilizations (linux build complained)
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Jan 2011 20:02:47 +0000 (20:02 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Jan 2011 20:02:47 +0000 (20:02 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@695 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrDrawTarget.cpp

index 7ea9ff2..df0f0be 100644 (file)
@@ -25,8 +25,8 @@ static int stage_mask_recur(int stage) {
     return GrDrawTarget::StageTexCoordVertexLayoutBit(stage, N) | 
            stage_mask_recur<N+1>(stage);
 }
-template<>
-static int stage_mask_recur<GrDrawTarget::kNumStages>(int) { return 0; }
+template<> // linux build doesn't like static on specializations
+int stage_mask_recur<GrDrawTarget::kNumStages>(int) { return 0; }
 
 // mask of all tex coord indices for one stage
 static int stage_tex_coord_mask(int stage) {
@@ -46,8 +46,8 @@ static int tex_coord_mask_recur(int texCoordIdx) {
     return GrDrawTarget::StageTexCoordVertexLayoutBit(N, texCoordIdx) | 
            tex_coord_mask_recur<N+1>(texCoordIdx);
 }
-template<>
-static int tex_coord_mask_recur<GrDrawTarget::kMaxTexCoords>(int) { return 0; }
+template<> // linux build doesn't like static on specializations
+int tex_coord_mask_recur<GrDrawTarget::kMaxTexCoords>(int) { return 0; }
 
 // mask of all bits relevant to one texture coordinate index
 static int tex_coord_idx_mask(int texCoordIdx) {