Skip tonemapping in case it is none (#13679)

# Objective
Skip unnecessary blit then tonemapping is set to none.

## Testing
Only tested locally on our app.

## Changelog

Changed tonemapping not to execute in case it is set to none.

Co-authored-by: Lukas Chodosevicius <lukaschodosevicius@Lukass-MacBook-Pro.local>
This commit is contained in:
Lukas Chodosevičius 2024-06-05 14:32:46 +03:00 committed by GitHub
parent bd6acc6119
commit 2b20af6b79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,10 @@ impl ViewNode for TonemappingNode {
let view_uniforms = &view_uniforms_resource.uniforms;
let view_uniforms_id = view_uniforms.buffer().unwrap().id();
if *tonemapping == Tonemapping::None {
return Ok(());
}
if !target.is_hdr() {
return Ok(());
}