Index: bench/GLVertexAttributesBench.cpp |
diff --git a/bench/GLVertexAttributesBench.cpp b/bench/GLVertexAttributesBench.cpp |
index 040ca183004a1fce15fe094d5ebf6f793777a12b..f579a3ea39dc6867b38d011eb4e1a378d4d72e83 100644 |
--- a/bench/GLVertexAttributesBench.cpp |
+++ b/bench/GLVertexAttributesBench.cpp |
@@ -114,8 +114,6 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a |
vshaderTxt.append("}\n"); |
- const GrGLInterface* gl = ctx->interface(); |
- |
// setup fragment shader |
GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); |
SkString fshaderTxt(version); |
@@ -127,7 +125,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a |
fshaderTxt.append(";\n"); |
fsOutName = oFragColor.c_str(); |
} else { |
- fsOutName = "gl_FragColor"; |
+ fsOutName = "sk_FragColor"; |
} |
for (uint32_t i = 0; i < maxAttribs; i++) { |
@@ -149,7 +147,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a |
fshaderTxt.append(";\n" |
"}\n"); |
- return CreateProgram(gl, vshaderTxt.c_str(), fshaderTxt.c_str()); |
+ return CreateProgram(ctx, vshaderTxt.c_str(), fshaderTxt.c_str()); |
} |
/////////////////////////////////////////////////////////////////////////////////////////////////// |