GLXFREECONTEXTEXT(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸŽ€ 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 😭

GLXBadContext is generated if ctx does not refer to a valid context. So if you hand her a fake context, she WILL clock it and throw hands πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • glXCreateContext
  • glXQueryVersion
  • glXQueryExtensionsString
  • glXImportContextEXT

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