mach: math lib adding const qualifier to set_2d_matrix

This commit is contained in:
RokKos 2023-06-28 16:35:41 +02:00 committed by Stephen Gutekanst
parent 6af918528c
commit 6c60f03386

View file

@ -401,7 +401,7 @@ pub const mat = struct {
} else @compileError("Expected matrix, found '" ++ @typeName(T) ++ "'");
}
pub inline fn set_2d_matrix(data: []f32) Mat3x3 {
pub inline fn set_2d_matrix(data: []const f32) Mat3x3 {
std.debug.assert(data.len == 9);
return .{
data[0], data[1], data[2], 0,