diff options
Diffstat (limited to 'bench/GLVec4ScalarBench.cpp')
-rw-r--r-- | bench/GLVec4ScalarBench.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/GLVec4ScalarBench.cpp b/bench/GLVec4ScalarBench.cpp index 373ae6b7bc..e3837a7225 100644 --- a/bench/GLVec4ScalarBench.cpp +++ b/bench/GLVec4ScalarBench.cpp @@ -124,6 +124,8 @@ GrGLuint GLVec4ScalarBench::setupShader(const GrGLContext* ctx) { " o_color = a_color;\n" "}\n"); + const GrGLInterface* gl = ctx->interface(); + // set up fragment shader; this fragment shader will have fNumStages coverage stages plus an // XP stage at the end. Each coverage stage computes the pixel's distance from some hard- // coded center and compare that to some hard-coded circle radius to compute a coverage. @@ -184,7 +186,7 @@ GrGLuint GLVec4ScalarBench::setupShader(const GrGLContext* ctx) { "}\n", fsOutName); - return CreateProgram(ctx, vshaderTxt.c_str(), fshaderTxt.c_str()); + return CreateProgram(gl, vshaderTxt.c_str(), fshaderTxt.c_str()); } template<typename Func> |