| Index: src/gpu/gl/win/SkNativeGLContext_win.cpp
|
| diff --git a/src/gpu/gl/win/SkNativeGLContext_win.cpp b/src/gpu/gl/win/SkNativeGLContext_win.cpp
|
| index f085fdc6eedef859328fb983a756c8821ec5d851..bae97a780c0b09e78d5108a7eaab4619128b96cb 100644
|
| --- a/src/gpu/gl/win/SkNativeGLContext_win.cpp
|
| +++ b/src/gpu/gl/win/SkNativeGLContext_win.cpp
|
| @@ -47,7 +47,7 @@
|
| }
|
| }
|
|
|
| -const GrGLInterface* SkNativeGLContext::createGLContext(GrGLStandard forcedGpuAPI) {
|
| +const GrGLInterface* SkNativeGLContext::createGLContext() {
|
| HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(NULL);
|
|
|
| if (!gWC) {
|
| @@ -85,13 +85,9 @@
|
| this->destroyGLContext();
|
| return NULL;
|
| }
|
| - // Requesting a Core profile would bar us from using NVPR. So we request
|
| - // compatibility profile or GL ES.
|
| - SkWGLContextRequest contextType =
|
| - kGLES_GrGLStandard == forcedGpuAPI ?
|
| - kGLES_SkWGLContextRequest : kGLPreferCompatibilityProfile_SkWGLContextRequest;
|
|
|
| - if (!(fGlRenderContext = SkCreateWGLContext(fDeviceContext, 0, contextType))) {
|
| + // Requesting a Core profile would bar us from using NVPR. So we pass false.
|
| + if (!(fGlRenderContext = SkCreateWGLContext(fDeviceContext, 0, false))) {
|
| SkDebugf("Could not create rendering context.\n");
|
| this->destroyGLContext();
|
| return NULL;
|
|
|