mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
964b047466
# Objective - Trying to make it possible to do write tests that don't require a raw window handle. - Fixes https://github.com/bevyengine/bevy/issues/6106. ## Solution - Make the interface and type changes. Avoid accessing `None`. --- ## Changelog - Converted `raw_window_handle` field in both `Window` and `ExtractedWindow` to `Option<RawWindowHandleWrapper>`. - Revised accessor function `Window::raw_window_handle()` to return `Option<RawWindowHandleWrapper>`. - Skip conditions in loops that would require a raw window handle (to create a `Surface`, for example). ## Migration Guide `Window::raw_window_handle()` now returns `Option<RawWindowHandleWrapper>`. Co-authored-by: targrub <62773321+targrub@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |