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

Commit 89ceb5c9 authored by Chris Craik's avatar Chris Craik
Browse files

Fix 9 patch mesh usage

Change-Id: I638fd5816d68a9ecd7f1709624fde2f372de5fa7
parent 84ad6149
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -545,13 +545,12 @@ void BakedOpDispatcher::onPatchOp(BakedOpRenderer& renderer, const PatchOp& op,
            op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.patch);

    Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(op.bitmap);
    if (!texture) return;
    if (CC_LIKELY(texture)) {
        const AutoTexture autoCleanup(texture);
        Glop glop;
        GlopBuilder(renderer.renderState(), renderer.caches(), &glop)
                .setRoundRectClipState(state.roundRectClipState)
                .setMeshPatchQuads(*mesh)
            .setMeshTexturedUnitQuad(texture->uvMapper)
                .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha)
                .setTransform(state.computedState.transform, TransformFlags::None)
                .setModelViewOffsetRectSnap(op.unmappedBounds.left, op.unmappedBounds.top,
@@ -559,6 +558,7 @@ void BakedOpDispatcher::onPatchOp(BakedOpRenderer& renderer, const PatchOp& op,
                .build();
        renderer.renderGlop(state, glop);
    }
}

void BakedOpDispatcher::onPathOp(BakedOpRenderer& renderer, const PathOp& op, const BakedOpState& state) {
    PathTexture* texture = renderer.caches().pathCache.get(op.path, op.paint);