Glop path texture support
Change-Id: I505eb05991ca4c9b2e01e49988b8f962fad51462
diff --git a/libs/hwui/renderstate/RenderState.cpp b/libs/hwui/renderstate/RenderState.cpp
index 3953ecd..e35327b 100644
--- a/libs/hwui/renderstate/RenderState.cpp
+++ b/libs/hwui/renderstate/RenderState.cpp
@@ -269,8 +269,12 @@
// TODO: to support shaders, increment texture unit
mCaches->textureState().activateTexture(0);
- glop.fill.texture->setWrap(GL_CLAMP_TO_EDGE, true);
- glop.fill.texture->setFilter(glop.fill.textureFilter, true);
+ if (glop.fill.textureClamp != GL_INVALID_ENUM) {
+ glop.fill.texture->setWrap(glop.fill.textureClamp, true);
+ }
+ if (glop.fill.textureFilter != GL_INVALID_ENUM) {
+ glop.fill.texture->setFilter(glop.fill.textureFilter, true);
+ }
mCaches->textureState().bindTexture(fill.texture->id);
meshState().enableTexCoordsVertexArray();