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

Commit 40800e1b authored by Ryan Prichard's avatar Ryan Prichard
Browse files

librenderengine: avoid vector<const T>

A container of const T uses std::allocator<const T>, which was an
undocumented libc++ extension that has been removed.

See https://github.com/llvm/llvm-project/pull/96319.

Bug: 349681543
Test: m librenderengine
Change-Id: I4c0f5adb94415777f832217bc8115e04de6186c5
parent 99498990
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -718,8 +718,7 @@ void Cache::primeShaderCache(SkiaRenderEngine* renderengine, bool shouldPrimeUlt
        const auto externalTexture =
                std::make_shared<impl::ExternalTexture>(externalBuffer, *renderengine,
                                                        impl::ExternalTexture::Usage::READABLE);
        std::vector<const std::shared_ptr<ExternalTexture>> textures =
            {srcTexture, externalTexture};
        std::vector<std::shared_ptr<ExternalTexture>> textures = {srcTexture, externalTexture};

        // Another external texture with a different pixel format triggers useIsOpaqueWorkaround.
        // It doesn't have to be f16, but it can't be the usual 8888.