summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gpu.cc')
-rw-r--r--src/gpu/gpu.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc
index ebf709e..8618280 100644
--- a/src/gpu/gpu.cc
+++ b/src/gpu/gpu.cc
@@ -266,9 +266,11 @@ static void handle_request_device(WGPURequestDeviceStatus status,
}
}
static void handle_device_error(const WGPUDevice *device, WGPUErrorType type,
- WGPUStringView message, void *userdata) {
+ WGPUStringView message, void *userdata,
+ void *userdata2) {
(void)device;
(void)userdata;
+ (void)userdata2;
printf("WebGPU Error: %.*s\n", (int)message.length, message.data);
}
#endif