forked from rust-windowing/winit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11: Windows are Sync again (rust-windowing#474)
* x11: Windows are Sync again Fixes rust-windowing#472 * Add test ensuring that Window is Sync Window must be Sync for Vulkano's Arc<FramebufferAbstract> to be usable.
- Loading branch information
1 parent
eae7cb2
commit 42f0671
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extern crate winit; | ||
|
||
fn needs_sync<T:Sync>() {} | ||
|
||
#[test] | ||
fn window_sync() { | ||
// ensures that `winit::Window` implements `Sync` | ||
needs_sync::<winit::Window>(); | ||
} |