aboutsummaryrefslogtreecommitdiff
path: root/src/render_helpers/primary_gpu_texture.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-07-08 10:04:43 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-07-08 10:04:43 +0400
commit4cc195b681172f173c18eaf00261c2888f89b9c5 (patch)
tree00703b2291a5409417af34fa806f2116bcb47522 /src/render_helpers/primary_gpu_texture.rs
parentfc2be2b8d0624ff108d93cf93d9dccf57bf779a1 (diff)
downloadniri-4cc195b681172f173c18eaf00261c2888f89b9c5.tar.gz
niri-4cc195b681172f173c18eaf00261c2888f89b9c5.tar.bz2
niri-4cc195b681172f173c18eaf00261c2888f89b9c5.zip
screenshot-ui: Pre-compute PrimaryGpuTexture
Diffstat (limited to 'src/render_helpers/primary_gpu_texture.rs')
-rw-r--r--src/render_helpers/primary_gpu_texture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render_helpers/primary_gpu_texture.rs b/src/render_helpers/primary_gpu_texture.rs
index 3698212d..702b70b4 100644
--- a/src/render_helpers/primary_gpu_texture.rs
+++ b/src/render_helpers/primary_gpu_texture.rs
@@ -8,7 +8,7 @@ use super::texture::TextureRenderElement;
use crate::backend::tty::{TtyFrame, TtyRenderer, TtyRendererError};
/// Wrapper for a texture from the primary GPU for rendering with the primary GPU.
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub struct PrimaryGpuTextureRenderElement(pub TextureRenderElement<GlesTexture>);
impl Element for PrimaryGpuTextureRenderElement {