Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50ae66a5 authored by Romain Guy's avatar Romain Guy
Browse files

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
parent 7711260e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -418,6 +418,7 @@ bool Caches::enableScissor() {
    if (!scissorEnabled) {
    if (!scissorEnabled) {
        glEnable(GL_SCISSOR_TEST);
        glEnable(GL_SCISSOR_TEST);
        scissorEnabled = true;
        scissorEnabled = true;
        resetScissor();
        return true;
        return true;
    }
    }
    return false;
    return false;