@@ -821,11 +821,11 @@ impl CommandSink {
821
821
) where
822
822
I : Iterator < Item = soft:: RenderCommand < & ' a soft:: Own > > ,
823
823
{
824
+ //assert!(AutoReleasePool::is_active());
824
825
self . stop_encoding ( ) ;
825
826
826
827
match * self {
827
828
CommandSink :: Immediate { ref cmd_buffer, ref mut encoder_state, .. } => {
828
- let _ap = AutoreleasePool :: new ( ) ;
829
829
let encoder = cmd_buffer. new_render_command_encoder ( descriptor) ;
830
830
for command in init_commands {
831
831
exec_render ( encoder, command) ;
@@ -1446,7 +1446,7 @@ impl pool::RawCommandPool<Backend> for CommandPool {
1446
1446
framebuffer_inner : native:: FramebufferInner {
1447
1447
extent : Extent :: default ( ) ,
1448
1448
aspects : Aspects :: empty ( ) ,
1449
- colors : Vec :: new ( ) ,
1449
+ colors : SmallVec :: new ( ) ,
1450
1450
depth_stencil : None ,
1451
1451
}
1452
1452
} ,
@@ -1653,6 +1653,8 @@ impl com::RawCommandBuffer<Backend> for CommandBuffer {
1653
1653
T : IntoIterator ,
1654
1654
T :: Item : Borrow < SubresourceRange > ,
1655
1655
{
1656
+ let _ap = AutoreleasePool :: new ( ) ;
1657
+
1656
1658
let CommandBufferInner {
1657
1659
ref mut retained_textures,
1658
1660
ref mut sink,
@@ -2017,6 +2019,8 @@ impl com::RawCommandBuffer<Backend> for CommandBuffer {
2017
2019
T : IntoIterator ,
2018
2020
T :: Item : Borrow < com:: ImageBlit >
2019
2021
{
2022
+ let _ap = AutoreleasePool :: new ( ) ;
2023
+
2020
2024
let vertices = & mut self . temp . blit_vertices ;
2021
2025
vertices. clear ( ) ;
2022
2026
@@ -2220,7 +2224,9 @@ impl com::RawCommandBuffer<Backend> for CommandBuffer {
2220
2224
. chain ( & extra)
2221
2225
. cloned ( ) ;
2222
2226
2223
- inner. sink ( ) . begin_render_pass ( false , & descriptor, commands) ;
2227
+ inner
2228
+ . sink ( )
2229
+ . begin_render_pass ( false , & descriptor, commands) ;
2224
2230
}
2225
2231
}
2226
2232
0 commit comments