Add alignCast for cross platform strictness
Some checks failed
release / build (release) Has been cancelled
Some checks failed
release / build (release) Has been cancelled
This commit is contained in:
parent
90bb30b6c6
commit
9f3495b882
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue