| Index: src/gpu/gl/SkNullGLContext.cpp
|
| diff --git a/src/gpu/gl/SkNullGLContext.cpp b/src/gpu/gl/SkNullGLContext.cpp
|
| index dafa1ef0bc2c61bce33de698df356690ce66350c..e7270c32c47c6283f5d45e4f2be40bb520a0abda 100644
|
| --- a/src/gpu/gl/SkNullGLContext.cpp
|
| +++ b/src/gpu/gl/SkNullGLContext.cpp
|
| @@ -578,7 +578,10 @@
|
| }
|
| #endif
|
|
|
| -SkNullGLContext* SkNullGLContext::Create() {
|
| +SkNullGLContext* SkNullGLContext::Create(GrGLStandard forcedGpuAPI) {
|
| + if (kGLES_GrGLStandard == forcedGpuAPI) {
|
| + return nullptr;
|
| + }
|
| SkNullGLContext* ctx = new SkNullGLContext;
|
| if (!ctx->isValid()) {
|
| delete ctx;
|
|
|