Use vertex array objects on core profiles.
Review URL: https://codereview.chromium.org/12533007

git-svn-id: http://skia.googlecode.com/svn/trunk@8024 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/mac/SkNativeGLContext_mac.cpp b/src/gpu/gl/mac/SkNativeGLContext_mac.cpp
index b821f3d..2c43c3d 100644
--- a/src/gpu/gl/mac/SkNativeGLContext_mac.cpp
+++ b/src/gpu/gl/mac/SkNativeGLContext_mac.cpp
@@ -6,6 +6,7 @@
  * found in the LICENSE file.
  */
 #include "gl/SkNativeGLContext.h"
+#include "AvailabilityMacros.h"
 
 SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
     fOldCGLContext = CGLGetCurrentContext();
@@ -35,7 +36,7 @@
     SkASSERT(NULL == fContext);
 
     CGLPixelFormatAttribute attributes[] = {
-#if 0
+#if MAC_OS_X_VERSION_10_7
         kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core,
 #endif
         (CGLPixelFormatAttribute)0