Closed floooh closed 3 years ago
...this is almost certainly the same ABI issue I already discovered before, the problem isn't the enum parameter, but the return struct which is <16 bytes, and in this case, the input parameter also gets corrupted on the way from the Zig to the C side.
Fixed with by introducing the SOKOL_ZIG_BINDINGS define in the sokol headers, which adds workaround for the ABI problems until they are fixes in Zig.
...the enum parameter gets broken when handed to the C side (results in some negative number).