core/colorpipeline: fix multiplier+matrix optimization

The multiplier needs to be applied after the matrix, the code applied it before

(cherry picked from commit b6c2f9ed7a)
wilder/Plasma/6.2
Xaver Hugl 1 year ago
parent 255c2a26d5
commit c6179331f6
  1. 3
      src/core/colorpipeline.cpp

@ -79,8 +79,9 @@ void ColorPipeline::addMultiplier(const QVector3D &factors)
if (!ops.empty()) {
auto *lastOp = &ops.back().operation;
if (const auto mat = std::get_if<ColorMatrix>(lastOp)) {
auto newMat = mat->mat;
QMatrix4x4 newMat;
newMat.scale(factors);
newMat *= mat->mat;
ops.erase(ops.end() - 1);
addMatrix(newMat, output);
return;

Loading…
Cancel
Save