Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix example mesh2d_manual in wasm/webgl2 (#12753)
# Objective - Example `mesh2d_manual` crashes in wasm/webgl2, as reported in bevyengine/bevy-website#1123 (comment) ``` wgpu error: Validation Error Caused by: In a RenderPass note: encoder = `<CommandBuffer-(0, 1, Gl)>` In a set_push_constant command Provided push constant is for stage(s) ShaderStages(VERTEX), however the pipeline layout has no push constant range for the stage(s) ShaderStages(VERTEX) ``` ## Solution - Properly declare the push constant as in https://github.com/bevyengine/bevy/blob/4508077297a92295d8b6fb6b07a63b547deac1e0/crates/bevy_sprite/src/mesh2d/mesh.rs#L514-L524
- Loading branch information