Skip to content

Commit 440bba8

Browse files
authored
add a required feature for shader_material_glsl (#11440)
# Objective - Since #11366, feature `glsl` of `naga_oil` is not enabled by default - It is needed for example `shader_material_glsl` ``` thread 'Compute Task Pool (0)' panicked at crates\bevy_render\src\render_resource\shader.rs:238:35: GLSL is not supported in this configuration; use the feature `shader_format_glsl` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Encountered a panic in system `bevy_render::render_resource::pipeline_cache::PipelineCache::process_pipeline_queue_system`! thread 'main' panicked at crates\bevy_render\src\pipelined_rendering.rs:145:45: called `Result::unwrap()` on an `Err` value: RecvError ``` ## Solution - Add feature `shader_format_glsl` as a required feature for example `shader_material_glsl`
1 parent b592a72 commit 440bba8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,7 @@ wasm = true
18971897
name = "shader_material_glsl"
18981898
path = "examples/shader/shader_material_glsl.rs"
18991899
doc-scrape-examples = true
1900+
required-features = ["shader_format_glsl"]
19001901

19011902
[package.metadata.example.shader_material_glsl]
19021903
name = "Material - GLSL"

0 commit comments

Comments
 (0)