gpu: correct context pointer alignments

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-31 17:09:35 -07:00 committed by Stephen Gutekanst
parent 4ed932be0f
commit 8a0d47b94b
6 changed files with 11 additions and 11 deletions

View file

@ -88,7 +88,7 @@ pub const Adapter = opaque {
status,
device,
message,
if (Context == void) {} else @ptrCast(Context, userdata),
if (Context == void) {} else @ptrCast(Context, @alignCast(@alignOf(Context), userdata)),
);
}
};