From cb9cad38f2087372eee45fe1fa71254548a1da6c Mon Sep 17 00:00:00 2001 From: iris <2+iris@noreply.localhost> Date: Sun, 13 Sep 2026 00:58:56 -0400 Subject: [PATCH] Initialize the window uniform from the surface --- core/src/render/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/render/mod.rs b/core/src/render/mod.rs index 7dec368..6beecdf 100644 --- a/core/src/render/mod.rs +++ b/core/src/render/mod.rs @@ -137,7 +137,10 @@ impl UiRenderNode { source: ShaderSource::Wgsl(SHAPE_SHADER.into()), }); - let window_uniform = WindowUniform::default(); + let window_uniform = WindowUniform { + width: config.width as f32, + height: config.height as f32, + }; let window_buffer = device.create_buffer_init(&BufferInitDescriptor { label: Some("window"), contents: bytemuck::cast_slice(&[window_uniform]),