mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-28 07:59:37 -06:00
Update GLM version
Correctly initialize all values as they are no longer default-initialized
This commit is contained in:
@@ -197,7 +197,7 @@ bool TransferFunction::createTexture(ghoul::opengl::Texture& ptr) {
|
||||
for (int i = 0; i < _width ; ++i) {
|
||||
const float position = static_cast<float>(i) / static_cast<float>(_width);
|
||||
int count = 0;
|
||||
glm::vec4 rgbFromEnvelopes(0.f, 0.f, 0.f, 0.f);
|
||||
glm::vec4 rgbFromEnvelopes(0.f);
|
||||
float alpha = 0.f;
|
||||
for (const Envelope& env : _envelopes) {
|
||||
if (env.isValueInEnvelope(position) && env.isEnvelopeValid()) {
|
||||
|
||||
Reference in New Issue
Block a user