aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-01-20 17:15:42 +0100
committerAndre Weissflog <floooh@gmail.com>2024-01-20 17:15:42 +0100
commit31ff258281fddd2a01304d30c3bbcc57f07d68a3 (patch)
treeb325a05474b59e05c200304ca0503b3b4e30426e
parent85ad4539060a0014069d6cebaeb04a6b6987cbcb (diff)
sokol_app.h wgpu: fix for a breaking webgpu.h API change in emsdk 3.1.52
-rw-r--r--CHANGELOG.md8
-rw-r--r--sokol_app.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 164adfc4..49f41c52 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
## Updates
+#### 19-Jan-2024
+
+- sokol_app.h wgpu: tiny fix for a breaking API change in webgpu.h in the Emscripten 3.1.52 SDK
+- Merged PR https://github.com/floooh/sokol/pull/970 (many thanks to @waywardmonkeys) which
+ fixes a couple of strict-prototype warnings (e.g. C functions using func() instead of func(void)).
+ I also enabled `-Wstrict-prototypes` now in the CI tests for GCC and Clang, so such cases
+ should be caught in the future.
+
#### 18-Jan-2024
- sokol_gfx.h: added support for the following pixel formats:
diff --git a/sokol_app.h b/sokol_app.h
index 678f1eed..ea8320a5 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -5722,7 +5722,7 @@ _SOKOL_PRIVATE void _sapp_emsc_wgpu_request_adapter_cb(WGPURequestAdapterStatus
WGPUDeviceDescriptor dev_desc;
_sapp_clear(&dev_desc, sizeof(dev_desc));
- dev_desc.requiredFeaturesCount = cur_feature_index;
+ dev_desc.requiredFeatureCount = cur_feature_index;
dev_desc.requiredFeatures = requiredFeatures,
wgpuAdapterRequestDevice(adapter, &dev_desc, _sapp_emsc_wgpu_request_device_cb, 0);
}