diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 14:38:13 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 14:38:13 +0000 |
commit | 83d81c96de34950bdd84dc575997a250b685a3d6 (patch) | |
tree | 4b6369af0e88494794a0bc9a8ca9bedfc500db0b /src/gpu/gl/win | |
parent | 1c2f8c2973df1ee04f7a09bbdec4650f6ee74380 (diff) |
Turn NVPR on by default (but off in tools).
BUG=skia:2042
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/144003006
git-svn-id: http://skia.googlecode.com/svn/trunk@13164 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/win')
-rw-r--r-- | src/gpu/gl/win/SkNativeGLContext_win.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/gl/win/SkNativeGLContext_win.cpp b/src/gpu/gl/win/SkNativeGLContext_win.cpp index 17b4e4ad9b..bae97a780c 100644 --- a/src/gpu/gl/win/SkNativeGLContext_win.cpp +++ b/src/gpu/gl/win/SkNativeGLContext_win.cpp @@ -86,10 +86,8 @@ const GrGLInterface* SkNativeGLContext::createGLContext() { return NULL; } - // We don't want the core profile when using NV path rendering (since - // NV path rendering relies on fixed function calls) - if (!(fGlRenderContext = SkCreateWGLContext(fDeviceContext, 0, - !GR_GL_USE_NV_PATH_RENDERING))) { + // 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; |