Index: bench/GLInstancedArraysBench.cpp |
diff --git a/bench/GLInstancedArraysBench.cpp b/bench/GLInstancedArraysBench.cpp |
index e98ab72587744bc08e13f99e014a0f0473d3588a..d89c0876052b952a3fa662cfc74b81ad05986f28 100644 |
--- a/bench/GLInstancedArraysBench.cpp |
+++ b/bench/GLInstancedArraysBench.cpp |
@@ -130,6 +130,8 @@ |
"o_color = a_color;\n" |
"}\n"); |
+ const GrGLInterface* gl = ctx->interface(); |
+ |
// setup fragment shader |
GrGLSLShaderVar oFragColor("o_FragColor", kVec4f_GrSLType, GrShaderVar::kOut_TypeModifier); |
SkString fshaderTxt(version); |
@@ -153,7 +155,7 @@ |
"%s = vec4(o_color, 1.0);\n" |
"}\n", fsOutName); |
- return CreateProgram(ctx, vshaderTxt.c_str(), fshaderTxt.c_str()); |
+ return CreateProgram(gl, vshaderTxt.c_str(), fshaderTxt.c_str()); |
} |
template<typename Func> |