diff --git a/src/rendering/extensions.rs b/src/rendering/extensions.rs index 0cadf78..fc492b1 100644 --- a/src/rendering/extensions.rs +++ b/src/rendering/extensions.rs @@ -119,7 +119,7 @@ impl Base { /// ///Everything rendered with this extension will have that color in the parts not occupied by a mesh. #[must_use] - pub fn new_with_color(order: u32, color: wgpu::Color) -> Self { + pub const fn new_with_color(order: u32, color: wgpu::Color) -> Self { Self { priority: order, clear_color: color,