gpu: correctly allow unsetting Device.setLostCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b28a01d2e8
commit
612c4420d6
3 changed files with 17 additions and 13 deletions
|
|
@ -599,7 +599,7 @@ pub const Interface = struct {
|
|||
);
|
||||
}
|
||||
|
||||
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: gpu.Device.LostCallback, userdata: ?*anyopaque) void {
|
||||
pub inline fn deviceSetDeviceLostCallback(device: *gpu.Device, callback: ?gpu.Device.LostCallback, userdata: ?*anyopaque) void {
|
||||
procs.deviceSetDeviceLostCallback.?(
|
||||
@ptrCast(c.WGPUDevice, device),
|
||||
@ptrCast(c.WGPUDeviceLostCallback, callback),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue