aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_gl.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-08 20:13:08 -0500
committerDavid Robillard <d@drobilla.net>2023-01-08 22:32:09 -0500
commitb2b917da14cbab770905232c8cf5680fa79cea8e (patch)
tree389a6ea726f8a2fa8c6df22808a183b121608c3b /src/mac_gl.m
parenta45fb20347d4474a2e3cacc8da3c2d3a465a3aed (diff)
downloadpugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.gz
pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.bz2
pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.zip
Prepare OpenGL context flags for OpenGL ES support
Diffstat (limited to 'src/mac_gl.m')
-rw-r--r--src/mac_gl.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mac_gl.m b/src/mac_gl.m
index b1430d9..f177bf9 100644
--- a/src/mac_gl.m
+++ b/src/mac_gl.m
@@ -29,7 +29,9 @@ ensureHint(PuglView* const view, const PuglViewHint hint, const int value)
- (id)initWithFrame:(NSRect)frame
{
- const bool compat = puglview->hints[PUGL_USE_COMPAT_PROFILE];
+ const bool compat =
+ puglview->hints[PUGL_CONTEXT_PROFILE] == PUGL_OPENGL_COMPATIBILITY_PROFILE;
+
const unsigned samples = (unsigned)puglview->hints[PUGL_SAMPLES];
const int major = puglview->hints[PUGL_CONTEXT_VERSION_MAJOR];
const unsigned profile =