mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01: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 New Issue
Block a user