From b6917600b7b13de3ef2d08d392ae7654ee58583c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Schl=C3=BCter?= Date: Wed, 4 Sep 2024 11:19:26 +0900 Subject: [PATCH] Clarify that only shareable objects are shared The docs say that glfw asks that "all objects" be shared. This is misleading. Qualify this by making explicit that there are shareable (and thus non-shareable) objects. --- docs/context.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/context.md b/docs/context.md index bf70553b..caf5936f 100644 --- a/docs/context.md +++ b/docs/context.md @@ -43,7 +43,8 @@ what kind of context is created. See When creating a window and its OpenGL or OpenGL ES context with @ref glfwCreateWindow, you can specify another window whose context the new one -should share its objects (textures, vertex and element buffers, etc.) with. +should share its shareable objects (textures, vertex and element buffers, etc.) +with. ```c GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, first_window); @@ -51,7 +52,7 @@ GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, fi Object sharing is implemented by the operating system and graphics driver. On platforms where it is possible to choose which types of objects are shared, GLFW -requests that all types are shared. +requests that all shareable types are shared. See the relevant chapter of the [OpenGL](https://www.opengl.org/registry/) or [OpenGL ES](https://www.khronos.org/opengles/) reference documents for more