Skip to content

Commit

Permalink
sokol_app.h wgpu: fix for a breaking webgpu.h API change in emsdk 3.1.52
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jan 20, 2024
1 parent 85ad453 commit 31ff258
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sokol_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 31ff258

Please sign in to comment.