mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 15:20:06 -04:00
Make views explicitly layer-backed on macOS Mojave. (#685)
On Mojave, views automatically become layer-backed shortly after being added to a window. Changing the layer-backedness of a view breaks the association between the view and its associated OpenGL context. To work around this, on Mojave we explicitly make the view layer-backed up front so that AppKit doesn't do it itself and break the association with its context. This was breaking the `window` example in `glutin`.
This commit is contained in:
committed by
Francesca Plebani
parent
0fca8e8cb5
commit
d2d127a4c4
@@ -24,6 +24,7 @@
|
||||
- Add optional `serde` feature with implementations of `Serialize`/`Deserialize` for DPI types and various event types.
|
||||
- Add `PartialEq`, `Eq`, and `Hash` implementations on public types that could have them but were missing them.
|
||||
- On X11, drag-and-drop receiving an unsupported drop type can no longer cause the WM to freeze.
|
||||
- Fix issue whereby the OpenGL context would not appear at startup on macOS Mojave (#1069).
|
||||
|
||||
# Version 0.17.2 (2018-08-19)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user