diff options
author | David Robillard <d@drobilla.net> | 2023-01-08 12:54:56 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-08 22:31:51 -0500 |
commit | f1524acbd3e708d1764b7f1533d707b22254ae95 (patch) | |
tree | 83a0a08ca2a7360abaca32e2717090e07b21f0aa /src/mac_gl.m | |
parent | 1e8431373a494c27c74e34bfa7ab0247e3c29677 (diff) | |
download | pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.tar.gz pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.tar.bz2 pugl-f1524acbd3e708d1764b7f1533d707b22254ae95.zip |
Add PUGL_SAMPLE_BUFFERS hint
Towards a more direct and explicit mapping to platform hints, and more
consistent behaviour across platforms. OpenGL applications are generally
expected to be explicit about hints like this.
Diffstat (limited to 'src/mac_gl.m')
-rw-r--r-- | src/mac_gl.m | 3 |
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; } |