From 20d34fddec6814ff03c711dc6c7f4361df61c7fd Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 7 Aug 2025 21:06:17 +0800 Subject: [PATCH 1/2] WServerGLWidget.C: fix Apple GL for < 10.7 --- src/Wt/WServerGLWidget.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Wt/WServerGLWidget.C b/src/Wt/WServerGLWidget.C index df7daf9ec..950344033 100644 --- a/src/Wt/WServerGLWidget.C +++ b/src/Wt/WServerGLWidget.C @@ -48,6 +48,7 @@ typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXC #include #include #include +#include #endif namespace { @@ -254,9 +255,11 @@ WServerGLWidgetImpl::WServerGLWidgetImpl(bool antialiasingEnabled): { CGLPixelFormatAttribute attributes[4] = { kCGLPFAAccelerated, // no software rendering +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 kCGLPFAOpenGLProfile, // core profile with the version stated below (CGLPixelFormatAttribute) kCGLOGLPVersion_Legacy, // (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core, +#endif (CGLPixelFormatAttribute) 0 }; CGLPixelFormatObj pix; From 45a30dd3658a1832a38e272a55b59fba1797c374 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 7 Aug 2025 21:06:50 +0800 Subject: [PATCH 2/2] WServerGLWidget.C: drop a duplicate header --- src/Wt/WServerGLWidget.C | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Wt/WServerGLWidget.C b/src/Wt/WServerGLWidget.C index 950344033..e9285c44a 100644 --- a/src/Wt/WServerGLWidget.C +++ b/src/Wt/WServerGLWidget.C @@ -47,7 +47,6 @@ typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXC #include #include #include -#include #include #endif