From b2b917da14cbab770905232c8cf5680fa79cea8e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Jan 2023 20:13:08 -0500 Subject: Prepare OpenGL context flags for OpenGL ES support --- src/mac_gl.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mac_gl.m') 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 = -- cgit v1.2.1