Fix: GPU Compositor results are sometimes clipped

Compositor outputs are sometimes clipped. That's because consecutive
shader operations in the GPU compositor were assumed to have the same
domain. So make sure to reset the domain during compile unit resets.
This commit is contained in:
Omar Emara
2024-03-04 19:16:07 +02:00
parent 19188582b0
commit 4ab6feb5bd

View File

@@ -75,6 +75,7 @@ ShaderCompileUnit &CompileState::get_shader_compile_unit()
void CompileState::reset_shader_compile_unit()
{
shader_compile_unit_.clear();
shader_compile_unit_domain_ = Domain::Identity();
}
bool CompileState::should_compile_shader_compile_unit(DNode node)