From e711f4c59f2b419fa0d9d0090487e3af7e441bd2 Mon Sep 17 00:00:00 2001 From: shai Date: Wed, 5 Jun 2024 16:34:23 +0300 Subject: [PATCH] a possible fix for MacOS systems. Issue #14348 --- src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.cpp b/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.cpp index bff77663bf..c1474d3b4e 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.cpp @@ -205,6 +205,8 @@ DlgCAMSimulator* DlgCAMSimulator::GetInstance() { if (mInstance == nullptr) { QSurfaceFormat format; + format.setVersion(4, 1); // Request OpenGL 4.1 - for MacOS + format.setProfile(QSurfaceFormat::CoreProfile); // Use the core profile = for MacOS format.setSamples(16); format.setSwapInterval(2); format.setDepthBufferSize(24);