Index: src/gpu/gl/mesa/SkMesaGLContext.cpp |
diff --git a/src/gpu/gl/mesa/SkMesaGLContext.cpp b/src/gpu/gl/mesa/SkMesaGLContext.cpp |
index 0199d12c1964e3efa067705a816a215d3e93cfa8..58e325dfeb82745d2ede8e4f2093e3f385ffe611 100644 |
--- a/src/gpu/gl/mesa/SkMesaGLContext.cpp |
+++ b/src/gpu/gl/mesa/SkMesaGLContext.cpp |
@@ -53,7 +53,11 @@ void SkMesaGLContext::destroyGLContext() { |
static const GrGLint gBOGUS_SIZE = 16; |
-const GrGLInterface* SkMesaGLContext::createGLContext() { |
+const GrGLInterface* SkMesaGLContext::createGLContext(GrGLStandard forcedGpuAPI) { |
+ if (kGLES_GrGLStandard == forcedGpuAPI) { |
+ return NULL; |
+ } |
+ |
/* Create an RGBA-mode context */ |
#if OSMESA_MAJOR_VERSION * 100 + OSMESA_MINOR_VERSION >= 305 |
/* specify Z, stencil, accum sizes */ |