mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 14:36:16 +02:00
🔧 Avoid using global static mut variables when possible
This commit is contained in:
parent
0279e75c4b
commit
3a8ba4cbee
6 changed files with 270 additions and 218 deletions
|
@ -458,7 +458,7 @@ impl RenderState {
|
|||
if self
|
||||
.cached_surface_image
|
||||
.as_ref()
|
||||
.map_or(true, |img| img.invalid)
|
||||
.is_none_or(|img| img.invalid)
|
||||
{
|
||||
self.cached_surface_image = Some(CachedSurfaceImage {
|
||||
image: self.surfaces.snapshot(SurfaceId::Current),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue