Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a2ac033 authored by Sally Qi's avatar Sally Qi Committed by Android (Google) Code Review
Browse files

Merge "Fix a minor error when checking valid luts.pfd." into main

parents 47839580 fb907db8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ Error Display::getRequestedLuts(LayerLuts* outLuts,
        auto layer = getLayerById(layerIds[i]);
        if (layer) {
            auto& layerLut = tmpLuts[i];
            if (layerLut.luts.pfd.get() > 0 && layerLut.luts.offsets.has_value()) {
            if (layerLut.luts.pfd.get() >= 0 && layerLut.luts.offsets.has_value()) {
                const auto& offsets = layerLut.luts.offsets.value();
                std::vector<std::pair<int32_t, LutProperties>> lutOffsetsAndProperties;
                lutOffsetsAndProperties.reserve(offsets.size());