GLXFREECONTEXTEXT(3gl)
π NAME π
glXFreeContextEXT β bestie, this one frees the client-side memory for an imported context π
β¨ C SPECIFICATION β¨
void glXFreeContextEXT( Display *dpy,
GLXContext ctx )
delim $$
πΈ PARAMETERS πΈ
dpyβ the connection to the X server, your lil phone line to the server basically πctxβ a GLX rendering context, the actual thing we're talking about π
π DESCRIPTION π
Okay so here's the tea β: glXFreeContextEXT frees the client-side part of a GLXContext that was created with glXImportContext. That's it, that's the whole job, and she does it well π
But bestie, listen, this is the important part: glXFreeContextEXT does not free the server-side context information, and it does not free the XID associated with the server-side context. So likeβ¦ half the context is still out there living its life π the client-side memory is gone, the server-side stuff is not.
glXFreeContextEXT is part of the EXT_import_context extension, not part of the core GLX command set. She's a guest star, not a series regular β¨
And the vibe check on whether the extension is even there: if GLX_EXT_import_context is included in the string returned by glXQueryExtensionsString, when called with argument GLX_EXTENSIONS, extension EXT_vertex_array is supported. π (yes, that's exactly what it says, no I will not elaborate, the manpage said it and I'm just the messenger π«Ά)
π ERRORS π
GLXBadContextis generated ifctxdoes not refer to a valid context. So if you hand her a fake context, she WILL clock it and throw hands π
π¦ SEE ALSO π¦
glXCreateContextglXQueryVersionglXQueryExtensionsStringglXImportContextEXT
And that's the whole page, babe π«Ά this was the GLXFREECONTEXTEXT() man page from the 3G manual β the source line just says GLXFREECONTEXTEXT() on both ends, iconic symmetrical queen behavior π no cap. Go free your contexts responsibly, mwah π
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms