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