diff --git a/pixelgl/thread.go b/pixelgl/thread.go index c78c6e0388a3b6f050c861b32b7492fd8f12bffa..9b9ecc254868985c52fa5153b31ff17af37cbcdb 100644 --- a/pixelgl/thread.go +++ b/pixelgl/thread.go @@ -23,6 +23,7 @@ func init() { } // Init initializes OpenGL by loading the function pointers from the active OpenGL context. +// This function must be manually run inside the dedicated thread (Do, DoErr, DoVal, etc.). // // It must be called under the presence of an active OpenGL context, e.g., always after calling window.MakeContextCurrent(). // Also, always call this function when switching contexts.