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 --- doc/c/view.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') 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. -- cgit v1.2.1