From 037f37e4d68910a086d4c222cf735bee30698b12 Mon Sep 17 00:00:00 2001 From: robtfm <50659922+robtfm@users.noreply.github.com> Date: Sun, 26 May 2024 15:37:24 +0100 Subject: [PATCH] add glsl feature for bevy_pbr (#13516) # Objective in bevy_pbr we check for `shader_format_glsl` before using binding arrays due to a naga->glsl limitation. but the feature is currently only enabled for the bevy_render crate. fix #13232 ## Solution enable the feature for bevy_pbr too. --------- Co-authored-by: Alice Cecile --- crates/bevy_internal/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index 37038350386e2..e6cc7b3da2e54 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -62,7 +62,10 @@ symphonia-vorbis = ["bevy_audio/symphonia-vorbis"] symphonia-wav = ["bevy_audio/symphonia-wav"] # Shader formats -shader_format_glsl = ["bevy_render/shader_format_glsl"] +shader_format_glsl = [ + "bevy_render/shader_format_glsl", + "bevy_pbr?/shader_format_glsl", +] shader_format_spirv = ["bevy_render/shader_format_spirv"] serialize = [