Index: src/gpu/gl/angle/SkANGLEGLContext.cpp |
diff --git a/src/gpu/gl/angle/SkANGLEGLContext.cpp b/src/gpu/gl/angle/SkANGLEGLContext.cpp |
index 54ef02d492468864f82ee60e89eba16120dabbe9..2c9f38e1d948e342d6e0c946f59d8b5613e68e8c 100644 |
--- a/src/gpu/gl/angle/SkANGLEGLContext.cpp |
+++ b/src/gpu/gl/angle/SkANGLEGLContext.cpp |
@@ -180,7 +180,12 @@ GrGLuint SkANGLEGLContext::eglImageToExternalTexture(GrEGLImage image) const { |
} |
SkGLContext* SkANGLEGLContext::createNew() const { |
- SkGLContext* ctx = SkANGLEGLContext::Create(this->gl()->fStandard, fIsGLBackend); |
+#ifdef SK_BUILD_FOR_WIN |
+ SkGLContext* ctx = fIsGLBackend ? SkANGLEGLContext::CreateOpenGL() |
+ : SkANGLEGLContext::CreateDirectX(); |
+#else |
+ SkGLContext* ctx = SkANGLEGLContext::CreateOpenGL(); |
+#endif |
if (ctx) { |
ctx->makeCurrent(); |
} |