mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
Fix lifetime of cached textures (#4333)
* Fix in-use textures being destroyed * Remove ImageTexture refs * Review
This commit is contained in:
@@ -234,7 +234,7 @@ impl PerPixelAdjustGraphicsPipeline {
|
||||
rp.draw(0..3, 0..1);
|
||||
|
||||
let attributes = textures.clone_item_attributes(index);
|
||||
Item::from_parts(Raster::new(GPU { texture: tex_out }), attributes)
|
||||
Item::from_parts(Raster::new_gpu(tex_out), attributes)
|
||||
})
|
||||
.collect::<List<_>>();
|
||||
context.queue.submit([cmd.finish()]);
|
||||
|
||||
Reference in New Issue
Block a user