Add alignCast for cross platform strictness
Some checks failed
release / build (release) Has been cancelled

This commit is contained in:
Jared Miller 2025-12-17 11:56:06 -05:00
parent 90bb30b6c6
commit 9f3495b882
No known key found for this signature in database

View file

@ -26,7 +26,7 @@ pub const ComputeShader = struct {
pub fn init() ?ComputeShader {
// load glMemoryBarrier dynamically
const barrier_ptr = rl.gl.rlGetProcAddress("glMemoryBarrier");
const glMemoryBarrier: GlMemoryBarrierFn = @ptrCast(barrier_ptr);
const glMemoryBarrier: GlMemoryBarrierFn = @ptrCast(@alignCast(barrier_ptr));
// compile compute shader
const shader_id = rl.gl.rlCompileShader(comp_source, rl.gl.rl_compute_shader);