Skip to content

Commit 50ae66a

Browse files
author
Romain Guy
committed
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
1 parent 7711260 commit 50ae66a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/hwui/Caches.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ bool Caches::enableScissor() {
418418
if (!scissorEnabled) {
419419
glEnable(GL_SCISSOR_TEST);
420420
scissorEnabled = true;
421+
resetScissor();
421422
return true;
422423
}
423424
return false;

0 commit comments

Comments
 (0)