summaryrefslogtreecommitdiff
path: root/alligator_render/src/renderer.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2023-02-05 13:20:29 -0500
committerMicha White <botahamec@outlook.com>2023-02-05 13:20:29 -0500
commitb22ddd8da7075954b691903ef85f7c8f1e6b0811 (patch)
treef6c44c02d2f9692368420b588dc2da8cae532d0c /alligator_render/src/renderer.rs
parent13f26092d89fa3304a86e3005ccafa7272f2447c (diff)
Fix view formats
Diffstat (limited to 'alligator_render/src/renderer.rs')
-rw-r--r--alligator_render/src/renderer.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/alligator_render/src/renderer.rs b/alligator_render/src/renderer.rs
index a8d7364..f5b486d 100644
--- a/alligator_render/src/renderer.rs
+++ b/alligator_render/src/renderer.rs
@@ -194,12 +194,8 @@ impl Renderer {
let capabilities = surface.get_capabilities(&adapter);
let supported_present_modes = capabilities.present_modes.into_boxed_slice();
let supported_alpha_modes = capabilities.alpha_modes.into_boxed_slice();
- let supported_texture_formats = capabilities.formats;
- let surface_config = config.to_surface_configuration(
- &supported_present_modes,
- &supported_alpha_modes,
- supported_texture_formats,
- );
+ let surface_config =
+ config.to_surface_configuration(&supported_present_modes, &supported_alpha_modes);
surface.configure(&device, &surface_config);
// create the camera