aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/mesa/SkMesaGLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/mesa/SkMesaGLContext.h')
-rw-r--r--src/gpu/gl/mesa/SkMesaGLContext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/gl/mesa/SkMesaGLContext.h b/src/gpu/gl/mesa/SkMesaGLContext.h
index a9c77a81da..a58f1c890e 100644
--- a/src/gpu/gl/mesa/SkMesaGLContext.h
+++ b/src/gpu/gl/mesa/SkMesaGLContext.h
@@ -19,7 +19,10 @@ private:
public:
~SkMesaGLContext() override;
- static SkMesaGLContext* Create() {
+ static SkMesaGLContext* Create(GrGLStandard forcedGpuAPI) {
+ if (kGLES_GrGLStandard == forcedGpuAPI) {
+ return nullptr;
+ }
SkMesaGLContext* ctx = new SkMesaGLContext;
if (!ctx->isValid()) {
delete ctx;