fix for winvdows nvpr
authorjoshualitt <joshualitt@chromium.org>
Wed, 14 Jan 2015 01:05:03 +0000 (17:05 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 14 Jan 2015 01:05:03 +0000 (17:05 -0800)
TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/804023005

src/gpu/GrGeometryProcessor.cpp
src/gpu/gl/GrGLPathRendering.cpp

index e8ffc7b3a7880bbc34637b7f66aa034135a69ad2..b4a9cbef024fb9b60e99199097c2b7c2b95246db 100644 (file)
@@ -391,15 +391,11 @@ public:
                         coordTransforms[t]->getMatrix().hasPerspective() ? kVec3f_GrSLType :
                                                                            kVec2f_GrSLType;
 
-                const char* varyingName = "MatrixCoord";
-                SkString suffixedVaryingName;
-                if (0 != t) {
-                    suffixedVaryingName.append(varyingName);
-                    suffixedVaryingName.appendf("_%i", t);
-                    varyingName = suffixedVaryingName.c_str();
-                }
+
+                SkString strVaryingName("MatrixCoord");
+                strVaryingName.appendf("_%i_%i", i, t);
                 GrGLVertToFrag v(varyingType);
-                pb->addVarying(varyingName, &v);
+                pb->addVarying(strVaryingName.c_str(), &v);
                 SeparableVaryingInfo& varyingInfo = fSeparableVaryingInfos.push_back();
                 varyingInfo.fVariable = pb->getFragmentShaderBuilder()->fInputs.back();
                 varyingInfo.fLocation = fSeparableVaryingInfos.count() - 1;
index 35c4b82c82f0c6ad2f4f27e026f0ddc57b9a0368..93f892d3b36c8d31701a27d88c8f1ab006a1164e 100644 (file)
@@ -68,7 +68,6 @@ GrGLPathRendering::GrGLPathRendering(GrGLGpu* gpu)
         NULL != glInterface->fFunctions.fStencilThenCoverFillPathInstanced &&
         NULL != glInterface->fFunctions.fStencilThenCoverStrokePathInstanced;
     fCaps.fragmentInputGenSupport =
-        kGLES_GrGLStandard == glInterface->fStandard &&
         NULL != glInterface->fFunctions.fProgramPathFragmentInputGen;
     fCaps.glyphLoadingSupport =
         NULL != glInterface->fFunctions.fPathMemoryGlyphIndexArray;