mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Bigger headless window size in test
This commit is contained in:
parent
898a411c86
commit
3d2f71e59b
|
@ -11,8 +11,8 @@ use gl::types::*;
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_headless() {
|
fn test_headless() {
|
||||||
let width: i32 = 2;
|
let width: i32 = 256;
|
||||||
let height: i32 = 1;
|
let height: i32 = 256;
|
||||||
let window = glutin::HeadlessRendererBuilder::new(width as u32, height as u32).build().unwrap();
|
let window = glutin::HeadlessRendererBuilder::new(width as u32, height as u32).build().unwrap();
|
||||||
|
|
||||||
unsafe { window.make_current() };
|
unsafe { window.make_current() };
|
||||||
|
|
Loading…
Reference in a new issue