diff options
author | Romain Guy <romainguy@google.com> | 2012-10-07 14:05:59 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-10-07 15:23:55 -0700 |
commit | 50ae66a554126fadee2054e0d01a9e57150cedb5 (patch) | |
tree | 536c47edc484fec4b9dffc46917e7a88a615f535 /libs | |
parent | 7711260e4959686bb1d6f177a843c2108bb04710 (diff) | |
download | frameworks_base-50ae66a554126fadee2054e0d01a9e57150cedb5.zip frameworks_base-50ae66a554126fadee2054e0d01a9e57150cedb5.tar.gz frameworks_base-50ae66a554126fadee2054e0d01a9e57150cedb5.tar.bz2 |
Work around a possible driver bug
Bug #7296475
When re-enabling the scissor the driver seems to ignore the already
existing scissor box. This change resets the scissor box when the
test state changes.
Change-Id: I3a68433164f99d21fbab769a26c56fe416c1539a
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/Caches.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index 7853ae4..d18a5b0 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -418,6 +418,7 @@ bool Caches::enableScissor() { if (!scissorEnabled) { glEnable(GL_SCISSOR_TEST); scissorEnabled = true; + resetScissor(); return true; } return false; |