aboutsummaryrefslogtreecommitdiffstats
path: root/doc/c
diff options
context:
space:
mode:
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.