Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glx.QueryExtensionsString doesn't return all extensions causing initialization failure. #1426

Closed
erikhansenal opened this issue Jul 6, 2022 · 1 comment

Comments

@erikhansenal
Copy link

erikhansenal commented Jul 6, 2022

Application failed to initialize because it didn't find extension GLX_MESA_swap_control. This extension is definitely available, see attached glxinfo. Investigation showed the call to glx.QueryExtensionsString in src/api/glx/mod.rs line 757 didn't fetch all available extensions: only the ones in the client section of the glxinfo output. I'm running Ubuntu 18.04 on an VMWARE VM.

I've managed to get things working by changing the query call to use glx.GetClientString(xconn.display as *mut _, ffi::glx::EXTENSIONS as i32) which did return all extensions, including the server ones. Not sure if this is the right thing to do though

glxinfo_snippet.txt
glx.QueryExtentensionsString.txt
glx.GetClientString.txt

@kchibisov
Copy link
Member

kchibisov commented Sep 3, 2022

Fixed in #1435.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants