Index: bench/GLVec4ScalarBench.cpp |
diff --git a/bench/GLVec4ScalarBench.cpp b/bench/GLVec4ScalarBench.cpp |
index 373ae6b7bc763e8fa56c6aca20b0712a6d252535..e3837a7225700d8515014a23f74a968ef3d322d7 100644 |
--- a/bench/GLVec4ScalarBench.cpp |
+++ b/bench/GLVec4ScalarBench.cpp |
@@ -123,6 +123,8 @@ |
" o_position = a_position;\n" |
" 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- |
@@ -184,7 +186,7 @@ |
"}\n", |
fsOutName); |
- return CreateProgram(ctx, vshaderTxt.c_str(), fshaderTxt.c_str()); |
+ return CreateProgram(gl, vshaderTxt.c_str(), fshaderTxt.c_str()); |
} |
template<typename Func> |