Skip to content

Commit

Permalink
Add different error message for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopap committed Nov 1, 2022
1 parent 5b3b454 commit fb04948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/view/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub fn prepare_windows(
let not_already_configured = window_surfaces.configured_windows.insert(window.id);

if not_already_configured || window.size_changed || window.present_mode_changed {
let no_new_surface_message = "Error reconfiguring surface";
let no_new_surface_message = "Error configuring surface";
let surface = &surface_data.surface;
render_device.configure_surface(surface, &surface_configuration);
let frame = surface.get_current_texture().expect(no_new_surface_message);
Expand Down

0 comments on commit fb04948

Please sign in to comment.