aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContextFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrContextFactory.cpp')
-rwxr-xr-xsrc/gpu/GrContextFactory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp
index 6ed2c259e2..1f371302f4 100755
--- a/src/gpu/GrContextFactory.cpp
+++ b/src/gpu/GrContextFactory.cpp
@@ -76,7 +76,11 @@ GrContext* GrContextFactory::get(GLContextType type, GrGLStandard forcedGpuAPI)
glCtx->makeCurrent();
GrBackendContext p3dctx = reinterpret_cast<GrBackendContext>(glInterface.get());
+#ifdef SK_VULKAN
+ grCtx.reset(GrContext::Create(kVulkan_GrBackend, p3dctx, fGlobalOptions));
+#else
grCtx.reset(GrContext::Create(kOpenGL_GrBackend, p3dctx, fGlobalOptions));
+#endif
if (!grCtx.get()) {
return NULL;
}