Index: src/gpu/GrContextFactory.cpp |
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp |
index edef2f7db1cdc4802b96b25bb22cfd7bde94a582..f56e535b0e5587a891d04992bb69fb7e9976c301 100755 |
--- a/src/gpu/GrContextFactory.cpp |
+++ b/src/gpu/GrContextFactory.cpp |
@@ -68,6 +68,10 @@ GrContext* GrContextFactory::get(GLContextType type, GrGLStandard forcedGpuAPI) |
if (!glInterface) { |
return NULL; |
} |
+ } else { |
+ if (!glInterface->hasExtension("GL_NV_path_rendering")) { |
+ return NULL; |
+ } |
} |
glCtx->makeCurrent(); |