Skip to content

Commit

Permalink
wgpu-hal: Work around cbindgen bug: ignore gles::egl module.
Browse files Browse the repository at this point in the history
The definition of `EglInstance` trips mozilla/cbindgen#286. Since
the `wgpu_hal::gles::egl` module is an implementation detail anyway,
it should be harmless to ask cbindgen to just ignore it.

Fixes gfx-rs#2575.
  • Loading branch information
jimblandy committed Apr 3, 2022
1 parent 84fadca commit eb20ff0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wgpu-hal/src/gles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ To address this, we invalidate the vertex buffers based on:
*/

///cbindgen:ignore
#[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))]
mod egl;
#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]
Expand Down

0 comments on commit eb20ff0

Please sign in to comment.