gpu: correctly allow unsetting Device.setLoggingCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 21:34:32 -07:00
parent 2007542231
commit ae5bb78e09
3 changed files with 16 additions and 12 deletions

View file

@ -611,7 +611,7 @@ pub const Interface = struct {
procs.deviceSetLabel.?(@ptrCast(c.WGPUDevice, device), label);
}
pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: gpu.LoggingCallback, userdata: ?*anyopaque) void {
pub inline fn deviceSetLoggingCallback(device: *gpu.Device, callback: ?gpu.LoggingCallback, userdata: ?*anyopaque) void {
procs.deviceSetLoggingCallback.?(
@ptrCast(c.WGPUDevice, device),
@ptrCast(c.WGPULoggingCallback, callback),