Skip to content

Commit

Permalink
shader_unit: Intialize temporaries on shader invocation (#7366)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelthegreat authored Jan 20, 2024
1 parent 8e87bd6 commit ca3b230
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video_core/pica/shader_unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ca3b230

Please sign in to comment.