examples: improve compatibility with self-hosted compiler; zigimg updates

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-20 22:58:18 -07:00
parent bc5e2fe9bf
commit c4421840cb
3 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ pub fn init(app: *App, core: *mach.Core) !void {
.min_filter = .linear,
});
const img = try zigimg.Image.fromMemory(core.allocator, @embedFile("./assets/gotta-go-fast.png"));
var img = try zigimg.Image.fromMemory(core.allocator, @embedFile("./assets/gotta-go-fast.png"));
defer img.deinit();
const img_size = gpu.Extent3D{ .width = @intCast(u32, img.width), .height = @intCast(u32, img.height) };