aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_gl.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac_gl.m')
-rw-r--r--src/mac_gl.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mac_gl.m b/src/mac_gl.m
index 53daf97..69acde7 100644
--- a/src/mac_gl.m
+++ b/src/mac_gl.m
@@ -40,6 +40,9 @@
if (puglview->hints[PUGL_SAMPLES] == PUGL_DONT_CARE) {
puglview->hints[PUGL_SAMPLES] = 1;
}
+ if (puglview->hints[PUGL_SAMPLE_BUFFERS] == PUGL_DONT_CARE) {
+ puglview->hints[PUGL_SAMPLE_BUFFERS] = puglview->hints[PUGL_SAMPLES] > 0;
+ }
if (puglview->hints[PUGL_DOUBLE_BUFFER] == PUGL_DONT_CARE) {
puglview->hints[PUGL_DOUBLE_BUFFER] = 1;
}