1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 15:20:05 -04:00

egui_glow: Reduce memory allocations in Painter::set_texture (#1096)

Use bytemuck::cast_slice
This commit is contained in:
dvec
2022-01-12 13:33:06 +03:00
committed by GitHub
parent d9cfeff72c
commit 6c616a1b69
2 changed files with 5 additions and 6 deletions

View File

@@ -23,8 +23,9 @@ include = [
all-features = true
[dependencies]
egui = { version = "0.16.0", path = "../egui", default-features = false, features = ["single_threaded"] }
egui = { version = "0.16.0", path = "../egui", default-features = false, features = ["single_threaded", "convert_bytemuck"] }
bytemuck = "1.7"
epi = { version = "0.16.0", path = "../epi", optional = true }
glow = "0.11"
memoffset = "0.6"