glcontext: Improve get_version documentation
authorPablo Correa Gómez <ablocorrea@hotmail.com>
Mon, 9 May 2022 22:21:40 +0000 (00:21 +0200)
committerPablo Correa Gómez <ablocorrea@hotmail.com>
Sat, 4 Jun 2022 18:48:29 +0000 (20:48 +0200)
gdk/gdkglcontext.c

index c566f75e060e9ce168278aaf6b6baebd20d6a60c..8f9fe2539690603db729e81838b6fdbe8509c980 100644 (file)
@@ -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,