aboutsummaryrefslogtreecommitdiffstats
path: root/doc/c
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 /doc/c
parenta45fb20347d4474a2e3cacc8da3c2d3a465a3aed (diff)
downloadpugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.gz
pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.tar.bz2
pugl-b2b917da14cbab770905232c8cf5680fa79cea8e.zip
Prepare OpenGL context flags for OpenGL ES support
Diffstat (limited to 'doc/c')
-rw-r--r--doc/c/view.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/c/view.rst b/doc/c/view.rst
index ea261ff..ff8d3db 100644
--- a/doc/c/view.rst
+++ b/doc/c/view.rst
@@ -159,9 +159,11 @@ For example, to use OpenGL 3.3 Core Profile:
.. code-block:: c
- puglSetViewHint(view, PUGL_USE_COMPAT_PROFILE, PUGL_FALSE);
puglSetViewHint(view, PUGL_CONTEXT_VERSION_MAJOR, 3);
puglSetViewHint(view, PUGL_CONTEXT_VERSION_MINOR, 3);
+ puglSetViewHint(view,
+ PUGL_CONTEXT_PROFILE,
+ PUGL_OPENGL_COMPATIBILITY_PROFILE);
If you need to perform some setup using the OpenGL API,
there are two ways to do so.