[gtk: 3/11] glcontext: Improve get_version documentation




commit 6bc3ecbe56fb83a530e017bd34c1bfdc803081dc
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date:   Tue May 10 00:21:40 2022 +0200

    glcontext: Improve get_version documentation

 gdk/gdkglcontext.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index c566f75e06..8f9fe25396 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -1676,6 +1676,10 @@ gdk_gl_context_get_shared_context (GdkGLContext *context)
  * Retrieves the OpenGL version of the @context.
  *
  * The @context must be realized prior to calling this function.
+ *
+ * If the @context has never been made current, the version cannot
+ * be known and it will return 0 for both @major and @minor.
+ *
  */
 void
 gdk_gl_context_get_version (GdkGLContext *context,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]