Ensure no extraQuantity-dependent properties are added when there are no extraQuantities

This commit is contained in:
Oskar Carlbaum
2017-10-09 21:20:26 +02:00
parent fad306d510
commit 3f756016e7
2 changed files with 83 additions and 80 deletions

View File

@@ -209,8 +209,6 @@ void RenderableFieldlinesSequence::update(const UpdateData& data) {
if (_states[_activeStateIndex].nExtraQuantities() > 0) {
_shouldUpdateColorBuffer = true;
_shouldUpdateMaskingBuffer = true;
} else {
_pColorMethod = ColorMethod::UNIFORM;
}
// Everything is set and ready for rendering!