summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2014-08-29 23:53:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-29 23:53:32 +0000
commit28b4a5d058306b195597f80c696a8dd73885b05b (patch)
tree66b524009c4ddc23473794498e37ae52fbf616c2 /libs/hwui/OpenGLRenderer.cpp
parentb434b330ce23ae35e7649cc47beb70a188d08c45 (diff)
parent900beeb2eff12baba218d8414e8a35672d2160ec (diff)
downloadframeworks_base-28b4a5d058306b195597f80c696a8dd73885b05b.zip
frameworks_base-28b4a5d058306b195597f80c696a8dd73885b05b.tar.gz
frameworks_base-28b4a5d058306b195597f80c696a8dd73885b05b.tar.bz2
am 04834f4d: am b379a6e9: Merge "Ambient shadow tessellation improvement." into lmp-dev
* commit '04834f4d8f6d2a4d803b59a22f5b6d3b8dd97369': Ambient shadow tessellation improvement.
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rwxr-xr-xlibs/hwui/OpenGLRenderer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index bbf0551..0f36c06 100755
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -2417,6 +2417,10 @@ status_t OpenGLRenderer::drawVertexBuffer(float translateX, float translateY,
} else if (mode == VertexBuffer::kTwoPolyRingShadow) {
mCaches.bindShadowIndicesBuffer();
glDrawElements(GL_TRIANGLE_STRIP, TWO_POLY_RING_SHADOW_INDEX_COUNT, GL_UNSIGNED_SHORT, 0);
+ } else if (mode == VertexBuffer::kIndices) {
+ mCaches.unbindIndicesBuffer();
+ glDrawElements(GL_TRIANGLE_STRIP, vertexBuffer.getIndexCount(), GL_UNSIGNED_SHORT,
+ vertexBuffer.getIndices());
}
if (isAA) {