From 8820fd1d82acaefda98ae73ccf61413d5044f9f3 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 3 Mar 2015 14:20:47 -0800 Subject: Patch cleanup, reenable Patch Glops bug:19597454 Change-Id: If12b95e83588b81a553210cd8c2437c6c771073a --- libs/hwui/GlopBuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/hwui/GlopBuilder.cpp') diff --git a/libs/hwui/GlopBuilder.cpp b/libs/hwui/GlopBuilder.cpp index f94dc38..711b11c 100644 --- a/libs/hwui/GlopBuilder.cpp +++ b/libs/hwui/GlopBuilder.cpp @@ -198,7 +198,7 @@ GlopBuilder& GlopBuilder::setMeshPatchQuads(const Patch& patch) { mOutGlop->mesh.vertices = { mCaches.patchCache.getMeshBuffer(), VertexAttribFlags::kTextureCoord, - (void*)patch.offset, (void*)patch.textureOffset, nullptr, + (void*)patch.positionOffset, (void*)patch.textureOffset, nullptr, kTextureVertexStride }; mOutGlop->mesh.elementCount = patch.indexCount; return *this; @@ -518,6 +518,7 @@ GlopBuilder& GlopBuilder::setModelViewOffsetRectSnap(float offsetX, float offset } mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); + mOutGlop->bounds = source; mOutGlop->bounds.translate(offsetX, offsetY); return *this; } -- cgit v1.1