aboutsummaryrefslogtreecommitdiffstats
path: root/src/hap.zig
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-07-27 21:39:42 +0000
committers-ol <s+removethis@s-ol.nu>2025-07-27 21:44:11 +0000
commit0e57849232ce28c6b39df7777f48641fa97fbb58 (patch)
tree0af7c30a181bfb98788544d49f4ba952aca38a77 /src/hap.zig
parentupdate gitignore (diff)
downloadglsl-view-0e57849232ce28c6b39df7777f48641fa97fbb58.tar.gz
glsl-view-0e57849232ce28c6b39df7777f48641fa97fbb58.zip
fix texture binding bug
Diffstat (limited to 'src/hap.zig')
-rw-r--r--src/hap.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hap.zig b/src/hap.zig
index 696b905..c2db8bb 100644
--- a/src/hap.zig
+++ b/src/hap.zig
@@ -110,7 +110,7 @@ pub const HAPDecoder = struct {
buffer[0..length],
);
- if (tex.type == .TEXTURE_2D) return false;
+ if (tex.type == .TEXTURE_2D) return true;
} else {
try check(c.HapGetFrameTextureFormat(packet.data, @intCast(packet.size), 0, &format));
if (self.format) |fmt| {