Update wuffs bindings to avoid alloations

This commit is contained in:
yunusey
2025-06-02 13:11:23 -04:00
parent 304a67c3e2
commit 5034880dde
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ pub const swizzle = @import("swizzle.zig");
pub const ImageData = struct {
width: u32,
height: u32,
data: []const u8,
data: []u8,
};
test {

View File

@ -1242,7 +1242,7 @@ pub fn prepBackgroundImage(self: *OpenGL, path: []const u8) !void {
const pending: Image.Pending = .{
.width = decoded_image.width,
.height = decoded_image.height,
.data = @constCast(decoded_image.data).ptr,
.data = decoded_image.data.ptr,
};
// Store the image