Add alignCast for cross platform strictness
This commit is contained in:
parent
90bb30b6c6
commit
060d4077d9
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ pub const ComputeShader = struct {
|
||||||
pub fn init() ?ComputeShader {
|
pub fn init() ?ComputeShader {
|
||||||
// load glMemoryBarrier dynamically
|
// load glMemoryBarrier dynamically
|
||||||
const barrier_ptr = rl.gl.rlGetProcAddress("glMemoryBarrier");
|
const barrier_ptr = rl.gl.rlGetProcAddress("glMemoryBarrier");
|
||||||
const glMemoryBarrier: GlMemoryBarrierFn = @ptrCast(barrier_ptr);
|
const glMemoryBarrier: GlMemoryBarrierFn = @ptrCast(@alignCast(barrier_ptr));
|
||||||
|
|
||||||
// compile compute shader
|
// compile compute shader
|
||||||
const shader_id = rl.gl.rlCompileShader(comp_source, rl.gl.rl_compute_shader);
|
const shader_id = rl.gl.rlCompileShader(comp_source, rl.gl.rl_compute_shader);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue