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

micahrj
Copy link
Member

@micahrj micahrj 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.

@micahrj micahrj requested review from robbert-vdh and Engid December 12, 2023 06:05
@micahrj micahrj force-pushed the gl-raw-window-handle branch from 066b989 to 5edb461 Compare December 12, 2023 06:16
@@ -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.
@micahrj micahrj force-pushed the gl-raw-window-handle branch from 5edb461 to 4b7bf6c Compare December 12, 2023 17:44
@micahrj micahrj merged commit 348bc9f into RustAudio:master Dec 12, 2023
3 checks passed
@micahrj micahrj 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