Skip to content
New issue

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

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

Already on GitHub? # to your account

clear_depth, depth_range with auto select the best function #310

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

sagudev
Copy link
Contributor

@sagudev sagudev commented Oct 11, 2024

This would be useful for servo as sparkle also did this: https://github.com/servo/sparkle/blob/a61f94fff95d29e93721cdbfc4b5dde8671a6970/src/lib.rs#L736. All OpenGL versions supports f64 variant, but only 4.1>= supports f32 variant, while GLES supports only f32 variant

Second commit uses supports_f64_precision for auto selection and fixes supports_f64_precision on native for GLES to return false, but it's breaking change (as it needs &self now), although I did not find any users of it on whole GitHub.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev
Copy link
Contributor Author

sagudev commented Oct 16, 2024

Gentle ping @grovesNL

Copy link
Owner

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@grovesNL grovesNL merged commit 3d537eb into grovesNL:main Oct 16, 2024
6 checks passed
@sagudev
Copy link
Contributor Author

sagudev commented Oct 16, 2024

Would it be possible to get this released too? 🥺

@grovesNL
Copy link
Owner

Sure, released 0.15.0 https://crates.io/crates/glow

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants