-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Macos software renderer wrong depth_size
reported?
#1659
Comments
We get the values from the macOS itself and the config you request is a suggestion, and macos basically replies based on that suggestion. It decided that you don't have a config with the depth 24, while you could try manually playing with glutin config requests and see whether it's possible to get something different, I'm not sure we can do anything to prevent it, because of how macOS works and that it exposes only a single config at a time, so you basically try to create them until it kind of works... Maybe there's a better way to deal with that which and I'm just not familiar with it. |
There is only one Config to use in this environment :(. I shall work around it then, thanks for the quick response! |
I mean, maybe there're more, we can't get more than one at the time no macOS because that's how macOS works.... |
Re requesting 32 in the config and getting a config with 24, ""shouldn't"" it error that no compatible config is found? A similar thing happened on Android; I have a native window/surface with RGB565, no alpha. Put that in the EGL (Filtering does work when specifying one of the 10-bit or 8-bit formats...) |
The way config matching works is that it sorts + filters config based on what you passed (if you read the EGL/GLX/WGL) spec. I intentionally decided that we should just do what spec is doing and it's documented that it gives you at least. Maybe we should have an option for matcher to alter the behavior, but I don't think that starting to filter is a good idea without adding option. |
Ah you are right, for some attributes it gives you configs that are equal or higher (at least on EGL). Not sure how the sorting works, for RGB set to Not saying that we should change |
Geneeral |
Exactly, RGB is nontrivial though it could be implemented with |
My config selection logic is not working on macos. I expect
depth=24
,stencil=8
, however in my macos vm (software renderer) I see depth size as 32, which seems wrong.Can you tell me if this something that can be fixed in glutin or shall I work around it?
The text was updated successfully, but these errors were encountered: