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

Commit a48c654e authored by Mike Playle's avatar Mike Playle
Browse files

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

parent 97c7a443
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;
    }