gpu: correct context pointer alignments
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4ed932be0f
commit
8a0d47b94b
6 changed files with 11 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ pub const ShaderModule = opaque {
|
|||
callback(
|
||||
status,
|
||||
compilation_info,
|
||||
if (Context == void) {} else @ptrCast(Context, userdata),
|
||||
if (Context == void) {} else @ptrCast(Context, @alignCast(@alignOf(Context), userdata)),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue