fix bool bug so we can multisample now
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 24 Feb 2011 21:42:29 +0000 (21:42 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 24 Feb 2011 21:42:29 +0000 (21:42 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@851 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrGpuGL.cpp
samplecode/SampleShapes.cpp
src/utils/mac/SkOSWindow_Mac.cpp

index edcadb4..b30dd02 100644 (file)
@@ -1554,7 +1554,7 @@ bool GrGpuGL::flushGLStateCommon(GrPrimitiveType type) {
         // only perform query if we know MSAA is supported.
         // calling on non-MSAA target caused a crash in one environment,
         // though I don't think it should.
-        if (!fAASamples[kHigh_AALevel]) {
+        if (fAASamples[kHigh_AALevel]) {
             GR_GL_GetIntegerv(GL_SAMPLE_BUFFERS, &msaa);
         }
         if (fCurrDrawState.fFlagBits & kAntialias_StateBit) {
index 30ff3fd..a175af6 100644 (file)
@@ -5,7 +5,7 @@
 #include "SkStream.h"
 #include "SkView.h"
 
-#define DO_AA   false
+#define DO_AA   true
 
 #include "SkRectShape.h"
 #include "SkGroupShape.h"
index e45a445..7716185 100644 (file)
@@ -465,7 +465,7 @@ AGLContext create_gl(WindowRef wref, bool offscreen)
         AGL_STENCIL_SIZE, 8,
         AGL_SAMPLE_BUFFERS_ARB, 1,
                AGL_MULTISAMPLE,
-               AGL_SAMPLES_ARB, 2,
+               AGL_SAMPLES_ARB, 8,
                (offscreen ? AGL_OFFSCREEN : AGL_ACCELERATED),
         (offscreen ? AGL_NONE : AGL_DOUBLEBUFFER),
         AGL_NONE