From 2f0415a60325868a72eab08e93746c804b9e66b9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 6 Jul 2024 11:18:30 -0700 Subject: [PATCH] sysgpu: fix Texture.getWidth() Authored by @hordurj in https://github.com/hexops/mach/pull/1220/commits/235decb4aa5736f4f25643e960c74ae41088ad4e Signed-off-by: Stephen Gutekanst --- src/sysgpu/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysgpu/main.zig b/src/sysgpu/main.zig index 2c7afada..6272001f 100644 --- a/src/sysgpu/main.zig +++ b/src/sysgpu/main.zig @@ -1317,7 +1317,7 @@ pub const Impl = sysgpu.Interface(struct { pub inline fn textureGetWidth(texture_raw: *sysgpu.Texture) u32 { const texture: *impl.Texture = @ptrCast(@alignCast(texture_raw)); - return texture.getHeight(); + return texture.getWidth(); } pub inline fn textureSetLabel(texture: *sysgpu.Texture, label: [*:0]const u8) void {