mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-23 03:35:29 +00:00
shader_unit: Intialize temporaries on shader invocation (#7366)
This commit is contained in:
parent
8e87bd606c
commit
ca3b2306d5
|
@ -9,7 +9,10 @@
|
||||||
|
|
||||||
namespace Pica {
|
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;
|
ShaderUnit::~ShaderUnit() = default;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue