@@ -129,7 +129,7 @@ impl<C: TextureDataType, D: DepthTextureDataType> RenderTargetMultisample<C, D>
129129 /// Use [RenderTargetMultisample::resolve_color_to] to resolve to a custom non-multisample texture.
130130 ///
131131 pub fn resolve_color ( & self ) -> Texture2D {
132- let mut color_texture = Texture2D :: new_empty :: < C > (
132+ let color_texture = Texture2D :: new_empty :: < C > (
133133 & self . context ,
134134 self . color . width ( ) ,
135135 self . color . height ( ) ,
@@ -148,7 +148,7 @@ impl<C: TextureDataType, D: DepthTextureDataType> RenderTargetMultisample<C, D>
148148 /// Use [RenderTargetMultisample::resolve_depth_to] to resolve to a custom non-multisample texture.
149149 ///
150150 pub fn resolve_depth ( & self ) -> DepthTexture2D {
151- let mut depth_texture = DepthTexture2D :: new :: < D > (
151+ let depth_texture = DepthTexture2D :: new :: < D > (
152152 & self . context ,
153153 self . width ( ) ,
154154 self . height ( ) ,
@@ -164,7 +164,7 @@ impl<C: TextureDataType, D: DepthTextureDataType> RenderTargetMultisample<C, D>
164164 /// Use [RenderTargetMultisample::resolve_to] to resolve to custom non-multisample textures.
165165 ///
166166 pub fn resolve ( & self ) -> ( Texture2D , DepthTexture2D ) {
167- let mut color_texture = Texture2D :: new_empty :: < C > (
167+ let color_texture = Texture2D :: new_empty :: < C > (
168168 & self . context ,
169169 self . color . width ( ) ,
170170 self . color . height ( ) ,
@@ -174,7 +174,7 @@ impl<C: TextureDataType, D: DepthTextureDataType> RenderTargetMultisample<C, D>
174174 Wrapping :: ClampToEdge ,
175175 Wrapping :: ClampToEdge ,
176176 ) ;
177- let mut depth_texture = DepthTexture2D :: new :: < D > (
177+ let depth_texture = DepthTexture2D :: new :: < D > (
178178 & self . context ,
179179 self . width ( ) ,
180180 self . height ( ) ,
0 commit comments