mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
Bug 1335296 - Expand about:support WebGL information
This commit is contained in:
parent
b266e5e349
commit
43c36e207f
25 changed files with 256 additions and 29 deletions
|
|
@ -994,6 +994,27 @@ GLContextGLX::SwapBuffers()
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
GLContextGLX::GetWSIInfo(nsCString* const out) const
|
||||
{
|
||||
Display* display = DefaultXDisplay();
|
||||
int screen = DefaultScreen(display);
|
||||
|
||||
int majorVersion, minorVersion;
|
||||
sGLXLibrary.xQueryVersion(display, &majorVersion, &minorVersion);
|
||||
|
||||
out->Append(nsPrintfCString("GLX %u.%u", majorVersion, minorVersion));
|
||||
|
||||
out->AppendLiteral("\nGLX_VENDOR(client): ");
|
||||
out->Append(sGLXLibrary.xGetClientString(display, LOCAL_GLX_VENDOR));
|
||||
|
||||
out->AppendLiteral("\nGLX_VENDOR(server): ");
|
||||
out->Append(sGLXLibrary.xQueryServerString(display, screen, LOCAL_GLX_VENDOR));
|
||||
|
||||
out->AppendLiteral("\nExtensions: ");
|
||||
out->Append(sGLXLibrary.xQueryExtensionsString(display, screen));
|
||||
}
|
||||
|
||||
bool
|
||||
GLContextGLX::OverrideDrawable(GLXDrawable drawable)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue