1
0
Fork 0
forked from wry/wry

gfx: return formats by reference

This commit is contained in:
Julian Orth 2026-02-15 14:13:30 +01:00
parent b921c81e5d
commit 0f556fc054
7 changed files with 12 additions and 12 deletions

View file

@ -103,7 +103,7 @@ fn create_fd_data(ctx: &dyn GfxContext) -> (Vec<u8>, AHashMap<(u32, Modifier), u
let mut vec = vec![];
let mut map = AHashMap::new();
let mut pos = 0;
for (format, info) in &*ctx.formats() {
for (format, info) in &**ctx.formats() {
for modifier in &info.read_modifiers {
vec.write_u32::<NativeEndian>(*format).unwrap();
vec.write_u32::<NativeEndian>(0).unwrap();