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

hal/gles: support externally initialized contexts #2350

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

kvark
Copy link
Member

@kvark kvark commented Jan 3, 2022

Connections
Closes #2344
cc @lpenguin @caiiiycuk

Description
This PR attempts to make minimal set of changes to be able to use GLES in a context we aren't creating.
Overall, I'm happy with the way it turned out, especially struct EglContext part.

Testing
Comes with a whole example!

@caiiiycuk
Copy link
Contributor

Have the same error as in #2297 , so problem is not related to winit.

bug.mp4

@caiiiycuk
Copy link
Contributor

glutin does not support wasm taget (rust-windowing/glutin#1167), so for wasm need to create separate example in future.

@kvark
Copy link
Member Author

kvark commented Jan 3, 2022

Have the same error as in #2297

The examples in wgpu-hal aren't handling window resize, and it's not their goal to do so. This is irrelevant of the PR here.

glutin does not support wasm taget (rust-windowing/glutin#1167), so for wasm need to create separate example in future.

we could put stuff in the same example, just not using glutin, via a bunch of #[cfg()]

@kvark kvark merged commit 75b885b into gfx-rs:master Jan 4, 2022
@kvark kvark deleted the gles-external branch January 4, 2022 05:23
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.

Pure GL context
3 participants