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

Remove RawWindowHandleWrapper #156

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

glowcoil
Copy link
Member

@glowcoil glowcoil commented Dec 12, 2023

RawWindowHandleWrapper is only necessary since GlContext::create takes an impl HasRawWindowHandle argument, but GlContext::create is an internal unsafe API and it can just take a RawWindowHandle directly.

@@ -21,12 +21,6 @@ pub struct WindowHandle {
phantom: PhantomData<*mut ()>,
}

/// Quick wrapper to satisfy [HasRawWindowHandle], because of course a raw window handle wouldn't
Copy link
Contributor

Choose a reason for hiding this comment

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

sad to see this comment go 😆

Copy link
Contributor

@Engid Engid left a comment

Choose a reason for hiding this comment

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

Great cleanup, thanks!

RawWindowHandleWrapper is only necessary since GlContext::create takes an `impl
HasRawWindowHandle` argument, but GlContext::create is an internal unsafe API
and it is can just take a RawWindowHandle directly.
@glowcoil glowcoil merged commit 348bc9f into RustAudio:master Dec 12, 2023
3 checks passed
@glowcoil glowcoil deleted the gl-raw-window-handle branch December 12, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants