From 9b0b5eb3cb6d08334620b42bca46c4e585bc8562 Mon Sep 17 00:00:00 2001 From: Red Artist Date: Sat, 11 Nov 2023 04:06:37 +0530 Subject: [PATCH] make gputexture fields public --- crates/egui_render_glow/Cargo.toml | 2 +- crates/egui_render_glow/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/egui_render_glow/Cargo.toml b/crates/egui_render_glow/Cargo.toml index 01ec3a1..3f5ff6b 100644 --- a/crates/egui_render_glow/Cargo.toml +++ b/crates/egui_render_glow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui_render_glow" -version = "0.5.1" +version = "0.5.2" edition = "2021" description = "egui rendering backend using glow" license = "MIT" diff --git a/crates/egui_render_glow/src/lib.rs b/crates/egui_render_glow/src/lib.rs index c8d2269..0203543 100644 --- a/crates/egui_render_glow/src/lib.rs +++ b/crates/egui_render_glow/src/lib.rs @@ -151,10 +151,10 @@ impl GlowBackend { } } pub struct GpuTexture { - handle: glow::Texture, - width: u32, - height: u32, - sampler: Sampler, + pub handle: glow::NativeTexture, + pub width: u32, + pub height: u32, + pub sampler: NativeSampler, } /// Egui Painter using glow::Context