shader_unit: Intialize temporaries on shader invocation (#7366)
This commit is contained in:
parent
8e87bd606c
commit
ca3b2306d5
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@
|
|||
|
||||
namespace Pica {
|
||||
|
||||
ShaderUnit::ShaderUnit(GeometryEmitter* emitter) : emitter_ptr{emitter} {}
|
||||
ShaderUnit::ShaderUnit(GeometryEmitter* emitter) : emitter_ptr{emitter} {
|
||||
const Common::Vec4<f24> temp_vec{f24::Zero(), f24::Zero(), f24::Zero(), f24::One()};
|
||||
temporary.fill(temp_vec);
|
||||
}
|
||||
|
||||
ShaderUnit::~ShaderUnit() = default;
|
||||
|
||||
|
|
Loading…
Reference in a new issue