Make compatible_window mandatory in Compositor
This commit is contained in:
parent
1701ec815d
commit
5fc49edc55
6 changed files with 18 additions and 25 deletions
|
|
@ -22,7 +22,7 @@ pub trait Compositor: Sized {
|
|||
/// Creates a new [`Compositor`].
|
||||
fn new<W: Window + Clone>(
|
||||
settings: Self::Settings,
|
||||
compatible_window: Option<W>,
|
||||
compatible_window: W,
|
||||
) -> Result<Self, Error>;
|
||||
|
||||
/// Creates a [`Self::Renderer`] for the [`Compositor`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue