diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-05 15:39:15 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-05 15:39:15 +0000 |
commit | 205ddd7452c56bc465fc3800eeec4ec8fbb6485f (patch) | |
tree | c68f19dcc62cce56a5f0dc1b3de587c9eeb5b897 /src/utils/mac | |
parent | bb6793bd7751f7a4e48c942567cd6c5270661a2f (diff) |
Disable MSAA in SkOsWindow on mac and windows
git-svn-id: http://skia.googlecode.com/svn/trunk@1258 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/mac')
-rw-r--r-- | src/utils/mac/SkOSWindow_Mac.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/utils/mac/SkOSWindow_Mac.cpp b/src/utils/mac/SkOSWindow_Mac.cpp index ac0f203dad..f1a2926560 100644 --- a/src/utils/mac/SkOSWindow_Mac.cpp +++ b/src/utils/mac/SkOSWindow_Mac.cpp @@ -455,6 +455,8 @@ void SkEvent::SignalQueueTimer(SkMSec delay) } } +#define USE_MSAA 0 + AGLContext create_gl(WindowRef wref) { GLint major, minor; @@ -466,10 +468,12 @@ AGLContext create_gl(WindowRef wref) const GLint pixelAttrs[] = { AGL_RGBA, AGL_STENCIL_SIZE, 8, +#if USE_MSAA AGL_SAMPLE_BUFFERS_ARB, 1, - AGL_MULTISAMPLE, - AGL_SAMPLES_ARB, 8, - AGL_ACCELERATED, + AGL_MULTISAMPLE, + AGL_SAMPLES_ARB, 8, +#endif + AGL_ACCELERATED, AGL_DOUBLEBUFFER, AGL_NONE }; |