diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 22:30:42 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 22:30:42 +0100 |
| commit | 96daafc92d0507421b859783538512317eefb72c (patch) | |
| tree | ae67e24c6a388a640a5b6148356939ced92c0214 /src/gpu/gpu.cc | |
| parent | 25e693cc46324b4ec588530de542bba8af6f47c6 (diff) | |
fix(build): resolve cross-platform build configuration errors
- Corrected signature in for macOS native builds to match the 5-parameter definition.
- Conditionally compiled assignments in for native builds and removed the definition for Windows from , resolving 'no member named ' errors in Windows cross-compilation.
- Verified all macOS native build configurations (Debug, Size-Optimized, Final/Strip, Developer/All Options, Tests Only, Tools Only) and the Windows cross-compilation build are now compiling successfully.
Diffstat (limited to 'src/gpu/gpu.cc')
| -rw-r--r-- | src/gpu/gpu.cc | 4 |
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 |
