aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/gl/debug/DebugGLTestContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpu/gl/debug/DebugGLTestContext.cpp')
-rw-r--r--tools/gpu/gl/debug/DebugGLTestContext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpu/gl/debug/DebugGLTestContext.cpp b/tools/gpu/gl/debug/DebugGLTestContext.cpp
index cf8a9e4240..e8eea8f78e 100644
--- a/tools/gpu/gl/debug/DebugGLTestContext.cpp
+++ b/tools/gpu/gl/debug/DebugGLTestContext.cpp
@@ -1208,7 +1208,10 @@ private:
} // anonymous namespace
namespace sk_gpu_test {
-GLTestContext* CreateDebugGLTestContext() {
+GLTestContext* CreateDebugGLTestContext(GLTestContext* shareContext) {
+ if (shareContext) {
+ return nullptr;
+ }
GLTestContext* ctx = new DebugGLContext();
if (ctx->isValid()) {
return ctx;