diff options
| author | Micha White <botahamec@outlook.com> | 2023-02-04 11:41:22 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-02-04 11:41:22 -0500 |
| commit | e838982d1abe4134f83a3f4e9db0a3bfb8ebc926 (patch) | |
| tree | 3c13a7de2e3089de1d25f369aec69f23d075a38e /alligator_render/src/renderer.rs | |
| parent | 3201cf932ac9d6568b57433e47e7aaf68453b568 (diff) | |
Fix colors
Diffstat (limited to 'alligator_render/src/renderer.rs')
| -rw-r--r-- | alligator_render/src/renderer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alligator_render/src/renderer.rs b/alligator_render/src/renderer.rs index 98c772a..a7d952a 100644 --- a/alligator_render/src/renderer.rs +++ b/alligator_render/src/renderer.rs @@ -184,10 +184,11 @@ 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, - capabilities.formats[0], + supported_texture_formats, ); surface.configure(&device, &surface_config); |
