Skip to content

Commit

Permalink
Don't change GLSL.
Browse files Browse the repository at this point in the history
Co-authored-by: Teodor Tanasoaia <[email protected]>
  • Loading branch information
jimblandy and teoxoy authored Apr 5, 2024
1 parent d8e515f commit d7f8d0c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions naga/src/front/glsl/parser/declarations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,7 @@ impl<'source> ParsingContext<'source> {
init.and_then(|expr| ctx.ctx.lift_up_const_expression(expr).ok());
late_initializer = None;
} else if let Some(init) = init {
if ctx.is_inside_loop
|| !ctx
.ctx
.local_expression_kind_tracker
.is_const_or_override(init)
{
if ctx.is_inside_loop || !ctx.ctx.local_expression_kind_tracker.is_const(init) {
decl_initializer = None;
late_initializer = Some(init);
} else {
Expand Down

0 comments on commit d7f8d0c

Please sign in to comment.