Skip to content

Commit 4285de3

Browse files
author
Romain Guy
committed
Fix overdraw debug on QCOM
Disable the use of the tiling extension when overdraw debug is turned on. Change-Id: Ib0a0b7d1998146aa0c7efef2d3822f9997efb123
1 parent 574cf60 commit 4285de3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libs/hwui/Caches.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,13 @@ void Caches::resetScissor() {
435435
///////////////////////////////////////////////////////////////////////////////
436436

437437
void Caches::startTiling(GLuint x, GLuint y, GLuint width, GLuint height, bool opaque) {
438-
if (extensions.hasTiledRendering()) {
439-
glStartTilingQCOM(x, y, width, height,
440-
(opaque ? GL_NONE : GL_COLOR_BUFFER_BIT0_QCOM) |
441-
(debugOverdraw ? GL_STENCIL_BUFFER_BIT0_QCOM : 0));
438+
if (extensions.hasTiledRendering() && !debugOverdraw) {
439+
glStartTilingQCOM(x, y, width, height, (opaque ? GL_NONE : GL_COLOR_BUFFER_BIT0_QCOM));
442440
}
443441
}
444442

445443
void Caches::endTiling() {
446-
if (extensions.hasTiledRendering()) {
444+
if (extensions.hasTiledRendering() && !debugOverdraw) {
447445
glEndTilingQCOM(GL_COLOR_BUFFER_BIT0_QCOM);
448446
}
449447
}

0 commit comments

Comments
 (0)