From 2ef87e5f351f1558dabfd39d1823c234cf6547dc Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <barracuda@macos-powerpc.org>
Date: Sun, 4 Aug 2024 01:01:30 +0800
Subject: [PATCH 05/12] opengl_apple.c: fix for < 10.7

---
 src/detection/opengl/opengl_apple.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/detection/opengl/opengl_apple.c b/src/detection/opengl/opengl_apple.c
index 63751d6b..79996a63 100644
--- a/src/detection/opengl/opengl_apple.c
+++ b/src/detection/opengl/opengl_apple.c
@@ -1,4 +1,4 @@
-
+#include <AvailabilityMacros.h>
 #include "fastfetch.h"
 #include "opengl.h"
 
@@ -38,7 +38,7 @@ const char* cglDetectOpenGL(FFOpenGLResult* result)
 {
     CGLPixelFormatObj pixelFormat;
     CGLPixelFormatAttribute attrs[] = {
-        kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core,
+        kCGLPFADoubleBuffer,
         kCGLPFAAccelerated,
         0
     };
-- 
2.47.0

