summaryrefslogtreecommitdiff
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2012-09-23 15:00:46 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-09-23 15:00:46 -0700
commitd392b87e3d30cd4f0836623d848019c5724efce8 (patch)
treee1ebbf8d24d2ef4963f212c0f13bbf06fabeaa20 /libs/hwui/Caches.cpp
parentc0e1f268451550368d1d3d3558f8ce2459ed5713 (diff)
parent4285de3c8bc77856a2df98894f74bb7333f1d348 (diff)
Merge changes Ib0a0b7d1,Ibec4b2aa into jb-mr1-dev
* changes: Fix overdraw debug on QCOM Make sure we never bind to texture #0 Bug #7195815
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 22f1decc7ad5..898962a4ced7 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -435,15 +435,13 @@ void Caches::resetScissor() {
///////////////////////////////////////////////////////////////////////////////
void Caches::startTiling(GLuint x, GLuint y, GLuint width, GLuint height, bool opaque) {
- if (extensions.hasTiledRendering()) {
- glStartTilingQCOM(x, y, width, height,
- (opaque ? GL_NONE : GL_COLOR_BUFFER_BIT0_QCOM) |
- (debugOverdraw ? GL_STENCIL_BUFFER_BIT0_QCOM : 0));
+ if (extensions.hasTiledRendering() && !debugOverdraw) {
+ glStartTilingQCOM(x, y, width, height, (opaque ? GL_NONE : GL_COLOR_BUFFER_BIT0_QCOM));
}
}
void Caches::endTiling() {
- if (extensions.hasTiledRendering()) {
+ if (extensions.hasTiledRendering() && !debugOverdraw) {
glEndTilingQCOM(GL_COLOR_BUFFER_BIT0_QCOM);
}
}