Skip to content

Commit 9549bab

Browse files
Elabajabasuperdump
andauthored
spelling
Co-authored-by: Robert Swain <[email protected]>
1 parent a26a121 commit 9549bab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_render/src/view/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ pub fn prepare_windows(
184184
.entry(window.entity)
185185
.or_insert_with(|| unsafe {
186186
// NOTE: On some OSes this MUST be called from the main thread.
187-
// As of wgpu 0.15, only failable if the given window is a HTML canvas and obtaining a WebGPU or WebGL 2 context fails.
187+
// As of wgpu 0.15, only failable if the given window is a HTML canvas and obtaining a WebGPU or WebGL2 context fails.
188188
let surface = render_instance
189189
.create_surface(&window.handle.get_handle())
190190
.unwrap();
191191
let caps = surface.get_capabilities(&render_adapter);
192192
let formats = caps.formats;
193-
// Explicitally request an sRBG format, otherwise fallback to the first available format.
193+
// Explicitly request an sRGB format, otherwise fallback to the first available format.
194194
// For future HDR output support, we'll need to request a format that supports HDR,
195195
// but as of wgpu 0.15 that is not yet supported.
196196
let format = if formats.contains(&TextureFormat::Rgba8UnormSrgb) {

0 commit comments

Comments
 (0)