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

Commit 32a220aa authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Code Review
Browse files

Merge "Fix glReadPixels() to verify that both x and y are non-negative."

parents 3658de5f a48c654e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1467,7 +1467,7 @@ void glReadPixels(
        ogles_error(c, GL_INVALID_VALUE);
        return;
    }
    if (x<0 || x<0) {
    if (x<0 || y<0) {
        ogles_error(c, GL_INVALID_VALUE);
        return;
    }