diff options
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); |
